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. static+Rf[view] [source] 2021-12-18 00:31:14
>>petilo+tb
Kafka is not a queue. Kafka's parallelism is limited by the number of partitions you allocate, and you have to be sure to avoid head of line blocking.

Not the case with a queue.

◧◩◪
3. Spivak+rp[view] [source] 2021-12-18 01:49:11
>>static+Rf
This needs to be sung from the rooftops every time Kafka is mentioned. It's an amazing tool but it is the wrong wrong wrong tool if you need a queue. It will bite you in the ass and you'll be left with someone breathing down your neck wondering why jobs are processing so slowly and why you can't just spin up more workers.
[go to top]