very interesting and TIL about the project, thanks for sharing. What DB is River Queue for 46k jobs/sec (https://riverqueue.com/docs/benchmarks)
UPDATE: I see its PG - https://riverqueue.com/docs/transactional-enqueueing
UPDATE: I see its PG - https://riverqueue.com/docs/transactional-enqueueing
There is a super handy transactional completion API that lets you put some or all of a job in a transaction if you want to. Works great for making other database side effects atomic with the job’s completion. https://riverqueue.com/docs/transactional-job-completion