2 ms·
Yes, Redis is usually the backing store for Rails' Sidekiq. With Elixir we stored the job data in a PostgreSQL table and started a process with the id of that
by pmontra 1y ago
Yes, Redis is usually the backing store for Rails' Sidekiq.
With Elixir we stored the job data in a PostgreSQL table and started a process with the id of that record as argument.
When we had to restart the BEAM (deploy, reboot, anything) a process would look at that table and start a process for every record not marked as complete. If a process failed too many times and its supervisor gave up on it, we could restart it manually by calling a function in the console with the record id as argument. Or we could start all the processes of a given type at once, or all of them.
So we basically wrote a small subset of Redis and of Sidekiq admin.