Skip to content

Efficiency of SIGKILL safety relative to Sidekiq Pro #1118

Answered by bensheldon
machty asked this question in Q&A
Discussion options

You must be logged in to vote

It's a bit comparing apples and oranges: Redis is highly optimized for a relatively small number of instructions, whereas Postgres is a general purpose database that will do its best for any arbitrary SQL query. So I can't really compare performance: GoodJob definitely asks a lot of the Postgres database, but I don't think it's comparable to access patterns in Redis.

GoodJob achieves SIGKILL safety by not removing records from the database. GoodJob takes an Advisory Lock on the job record, remaining in the database; in the event of a SIGKILL, the database connection is closed by the database and the Advisory Lock is automatically released.

Postgres doesn't have a queue-pop, so GoodJob doe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by machty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants