Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you just use notify to tell listeners “there is work in the queue to grab” can you still lose messages? I’ve always seen it implemented where workers have to go and claim items (transactionally), not just wait to be pushed them.


No, that way is safe. Just make sure that your workers also check for items in the queue when they start.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: