zlacker

[parent] [thread] 2 comments
1. petilo+(OP)[view] [source] 2021-12-18 01:04:52
> With postgres, they’ve got an MVP in a day, and shipped within a week.

And the next week they realize they want reader processes to block until there is work to do. Oops that's not supported. Now you have to code that feature yourself... and soon you're reinventing Kafka.

replies(2): >>guywho+Qd >>mlyle+Bm
2. guywho+Qd[view] [source] 2021-12-18 03:10:22
>>petilo+(OP)
That's where LISTEN comes in. It's very simple to write this loop perfectly correct.
3. mlyle+Bm[view] [source] 2021-12-18 04:50:23
>>petilo+(OP)
The very source we're talking about describes how to block until there is work to do -- listener.Listen("ci_jobs_status_channel")
[go to top]