Heroku: web dyno vs. worker dyno? How many/what ratio do I need?

后端 未结 5 1366
天命终不由人
天命终不由人 2020-12-22 17:20

I was curious as to what the difference between web and worker dynos is on Heroku. They give a one sentence explanation on their pricing page, but this just left me confused

5条回答
  •  悲&欢浪女
    2020-12-22 17:43

    Short answer is that you need as many as you need to keep your queues down.

    As John describes, if you start seeing a queue in your logs then you need more dynos. If you start seeing your background queues getting too long (how you get this info is dependant on what you have implemented) then you need more workers.

    There is no ratio as it's very much dependent on your application design and usage.

提交回复
热议问题