How to Scale a Mobile App?

Is it possible to run a low-scale dynamic app on Heroku, completely free of cost?

  • I want to deploy a rails app on Heroku. My app needs database interaction and I therefore assume would need a worker dyno. Since I need to display my pages too, I will need a web dyno too. Since my app, in initial stages at least, will utilize a very small fraction of the allocated dyno hours, I was wondering if it is possible to provision some of the web dyno hours to worker dyno hours so that the total nicely fits into 750 dyno hrs/month

  • Answer:

    A worker dyno is usually only needed for those tasks that are run as something like a delayed job or a cron job. If your app implements a simple database backed website, then a single web dyno will be sufficient. Database interactions by themselves do not require a worker dyno.

Sujoy Gupta at Quora Visit the source

Was this solution helpful to you?

Other answers

Sujoy Gupta is right, database interaction does not require any background worker, they are rather thought for long-running tasks such as requests to external apis. That said, there is a background worker library called Girl Friday [1] that runs inside your Rails instance, that is your first and only Heroku Web dyno. Combined with the Unicorn app server for instance you can thus build a web app that will still respond quickly to end users while processing background jobs at small scale requiring only the free heroku dyno. [1]: https://github.com/mperham/girl_friday

Thomas Klemm

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.