logoalt Hacker News

owaisloneyesterday at 6:34 PM2 repliesview on HN

Interesting. Any docs that explain what/how they do this?


Replies

TkTechyesterday at 6:55 PM

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.

show 1 reply
brightballyesterday at 6:51 PM

Good Job is a strong attempt. I believe it's based around Advisory Locks though.

https://github.com/bensheldon/good_job