zlacker

[parent] [thread] 0 comments
1. simonw+(OP)[view] [source] 2021-06-12 14:35:14
The best reason I know of to use a relational database as a queue is that it lets you trigger queue operations from within a transaction - so a queue item is guaranteed to be created if the transaction succeeds, and guaranteed not to be created if the transaction fails.

Brandur wrote a great article about that here: https://brandur.org/postgres-queues

[go to top]