by hot_gril · 2y ago · 0 comments
A pubsub pattern like pg_notify can definitely make sense depending on the requirements, but I wouldn't jump to it first. The few times I've used pubsub elsewhere, it was when subscribing to some other team's service, not via a shared DB.
I think the SKIP LOCKED part is really only useful to avoid contention between two workers querying for new work simultaneously.