A combination of LISTEN/NOTIFY for instantaneous reactivity, letting you get away with just periodic polling, and FOR UPDATE...SKIP LOCKED making it efficient and safe for parallel workers to grab tasks without co-ordination. It's actually covered in the article near the bottom there.
TkTech|1 month ago
owaislone|1 month ago
brightball|1 month ago
https://github.com/bensheldon/good_job