3 ms·
The benefits of transactional queues in your database are hard to overstate; commit the result of the task in the same transaction as you commit the queue updat
by smilliken 9y ago
The benefits of transactional queues in your database are hard to overstate; commit the result of the task in the same transaction as you commit the queue update. Don't worry about idempotency, lost messages, or duplicate messages.
I suspect the advice to avoid it because of performance has become invalid for all but extreme use-cases. My company has dozens of high activity 1-100M item queues in single postgresql databases. It works great.