Replies: 3 comments 6 replies
-
Off the top of my head, GoodJob uses these features from Postgres:
|
Beta Was this translation helpful? Give feedback.
-
On this topic, have you ever thought about expanding GoodJob to support pluggable backends? I've always considered GoodJob to be the Rails analogy to Oban, which recently added support for Sqlite3 and has MySQL on its radar. For context, there have been a few scenarios where I would have really liked to be able to run GoodJob in a non-Postgres (but still ActiveRecord/Relational DB) environment, accepting that job execution performance would likely suffer due to it requiring a polling approach rather than LISTEN/NOTIFY & advisory locks. I fully recognize this is a massive undertaking, but just curious to hear whether this is something you'd even consider for outside contribution. |
Beta Was this translation helpful? Give feedback.
-
@sandstrom would it work to run all your jobs in Postgres and keep other data in CockroachDB? Rails makes it fairly easy to have multiple databases per app, and if necessary Postgres' could have views that read data from CockroachDB (probably using Foreign Data Wrappers—though I don't remember if FDWs are needed to read from another database that "looks like" another PG db), although I don't know why that would actually ever be necessary. I'd love to know if you get that worked out, since I'm working on an app that is starting on Postgres but which may switch to CockroachDB if it resolves certain scaling issues that I expect might arise—and I'd prefer to keep GoodJob if possible. @bensheldon I'd also love to hear your thoughts on whether this sounds feasible |
Beta Was this translation helpful? Give feedback.
-
CockroachDB -- a new database, aspiring to be wire-compatible with PostgreSQL -- has an ActiveRecord adapter that works fairly well (https://github.com/cockroachdb/activerecord-cockroachdb-adapter).
However, they are currently lacking support for Advisory Locks and LISTEN/NOTIFY which are two requirements for Good Job.
Just wanted to check, are there any other "special" features in PostgreSQL, that Good Job depends on?
cc @bensheldon
Beta Was this translation helpful? Give feedback.
All reactions