Request routing in Heroku
In the current deployment stack, an app named myapp
will have the default hostname of myapp.herokuapp.com
. The herokuapp.com
domain routes any request to Heroku via the routing mesh and provides a direct routing path to the corresponding web processes. This allows for advanced HTTP uses such as chunked responses, long polling, and using an asynchronous web server to handle multiple responses from a single web process.
The routing mesh is responsible for directing a request to the respective dyno in the dyno manifold. The routing mesh uses a round robin algorithm to perform the distribution of requests to the dynos as shown in the following diagram:
The HTTP request follows a timeout (30 sec) for the web process to return ...
Get Heroku Cloud Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.