zlacker

[return to "Postgres is a great pub/sub and job server (2019)"]
1. petilo+tb[view] [source] 2021-12-18 00:00:03
>>anonu+(OP)
Just because something can be used to do something doesn't mean it should. Kafka is specifically designed for this purpose, it is free, and it is easy to learn and use. If "starting with Postgres and then switching out when the time comes" saves money then I can understand. Otherwise use the right tool for the right job, right from the start.
◧◩
2. jastr+5f[view] [source] 2021-12-18 00:26:18
>>petilo+tb
This is advice that seems reasonable but is actually pretty harmful.

Take a startup with a few users. The senior engineer decides they need pub/sub to ship a new feature. With Kafka, the team goes to learn about Kafka best practices, choose client libraries, and learn the Kafka quirks. They also need to spin up Kafka instances. They ship it in a month.

With postgres, they’ve got an MVP in a day, and shipped within a week.

◧◩◪
3. petilo+Jj[view] [source] 2021-12-18 01:04:52
>>jastr+5f
> 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.

[go to top]