logoalt Hacker News

yawboakyetoday at 10:35 AM2 repliesview on HN

the problem i see here is that we end up treating the background job/task processor as part of the production system (e.g. the server that responds to requests, in the case of a web application) instead of a separate standalone thing. rails doesn’t make this distinction clear enough. it’s okay to back your tasks processor with a pg database (e.g. river[0]) but, as you indirectly pointed out, it shouldn’t be the same as the production database. this is why redis was preferred anyways: it was a lightweight database for the task processor to store state, etc. there’s still great arguments in favor of this setup. from what i’ve seen so far, solidqueue doesn’t make this separation.

[0]: https://riverqueue.com/


Replies

erispoetoday at 1:54 PM

> it shouldn’t be the same as the production database

Why is that?

show 1 reply
andrewstuarttoday at 11:48 AM

It’s not necessary to separate queue db from application db.

show 1 reply