: Neither workers nor dynos directly increase your application speed. If your application is slow, it will continue to be slow even if you add more dynos. Dynos represents concurrent requests.
Neither workers nor dynos directly increase your application speed. If your application is slow, it will continue to be slow even if you add more dynos.
Dynos represents concurrent requests. With 1 dyno, Heroku handles 1 concurrent request at time. With 4 dynos, it will handle 4 requests but if a request takes 10 seconds to complete, 4 requests will take 10 seconds each.
Workers can indirectly speed up your application if you start moving heavy and slow processes (like email delivery or .PDF generation) to background tasks.
Generally speaking, the way to increase your application performance is to inspect your application behavior and improve the code. Normally, you might want to use a fast caching layer (like Redis or Memcached) to speed up slow queries or cache view fragments.
More posts by @Miguel251
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.