How heroku handles web traffic and distribute among dyno

186 Views Asked by At

I want to know how heroku handles incoming web traffic and distribute among dynos. How Heroku knows when to distribute. Can one dyno handle many request at same time?

1

There are 1 best solutions below

0
On

You should look at Heroku's routing documentation.

Specifically, for your question about dynos handling multiple requests, yes, Heroku will route multiple requests to the same dyno. Some servers may not handle multiple ones though. For example, the default ruby server, Webrick doesn't. You'd have to use puma to have several threads, one handling each request.