[Answer]-Background tasks and queue with django

1👍

I resolve same problem in such way:

  • Queue stored in PostgreSQL (I used it because it already was, PostgreSQL has enough performance for my purpose and I didn’t want overcomplicate infrastructure).
  • Render are using multiprocessing module. It’s running with upstart. I’m using upstart because it’s easiest way to run separate app.

If you want to limit available resource for your application, you can setup
limit in upstart: limit rss 231236400 231236400 (size in bytes), or run application using cpulimit.

Leave a comment