herokurequest-queueing

Prioritizing specific endpoints on Heroku to skip / spend less time in request queue


Our API service has several endpoints and one of them is critical for the user experience because it directly affects the page load time.

Is there a way to priotize calls to GET /api/priority_endpoint over GET /api/regular_endpoint so the prioritized requests spend less time in the requests queue?

Thanks...


Solution

  • No, this is not possible. All requests are sent to a random dyno as soon as they're within the router.
    The only way you could do this would be by writing your own request queue in your app's code.