4 ms·
For your first question, I use the toniq library: https://github.com/joakimk/toniq https://github.com/joakimk/toniq. As biokoda mentioned, there's nothing stopp
by sbrother 10y ago
For your first question, I use the toniq library: https://github.com/joakimk/toniq https://github.com/joakimk/toniq. As biokoda mentioned, there's nothing stopping you from doing this by literally just spawning a ton of processes, but you do get a lot of nice things out of the box with toniq or another task queue framework. For example, toniq gives you automatic task retrying with exponential backoff, a max-concurrency option, and task backup with redis.
It doesn't have a scheduled job API yet, but there is a note in the readme that explains how to do this with quantum-elixir: https://github.com/joakimk/toniq#how-do-i-run-scheduled-or-recurring-jobs https://github.com/joakimk/toniq#how-do-i-run-scheduled-or-r....