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
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:
- Is it possible to run a custom ROM on AVD?Best solution by Stack Overflow
- Is it possible to perform a dynamic SQL join?Best solution by techrepublic.com
- How much would it cost to run a small farm?Best solution by wiki.answers.com
- Where's a good, completely free online photo album?Best solution by Yahoo! Answers
- How much to build a low cost concrete house in the Philippines per square meter?Best solution by topnotchconstructionph.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.