Re:Do you really need Redis? How to get away with just Postg...
by shawnz on Saturday June 12, 2021 @11:00AM
(#27484931)
If you are willing to use SELECT ... FOR UPDATE SKIP LOCKED, then you can implement the queue without any UPDATE query or status column at all. Just lock the record to mark it as in progress, that is how you get the benefit that when the worker crashes, it will automatically be returned to the queue.
[ Parent
| on HN ]
There are no comments on this comment yet.