What do people recommend? Especially for low levels of load, that doesn't require that the dispatcher and consumer are written in the same language.
Kafka at the low end: how bad can it get?
21–30 of 144 posts
Re: Kafka at the low end: how bad can it get?
#22Re: Kafka at the low end: how bad can it get?
#23Earlier quoted context omitted.
Until you hit scale, the database you're already using is fine. If that's Postgres, look up SELECT FOR UPDATE SKIP LOCKED. The major convenience here - aside from operational simplicity - is transactional task enqueueing. For hosted, SQS or Google Cloud Tasks. Google's approach is push-based (as opposed to pull-based) and is far and above easier to use than any other queueing system.
Famious last words. There are database as a queue antipattern warnings about this.
Re: Kafka at the low end: how bad can it get?
#24What do people recommend? Especially for low levels of load, that doesn't require that the dispatcher and consumer are written in the same language.
NATS https://docs.nats.io/nats-concepts/overview/compare-nats
Re: Kafka at the low end: how bad can it get?
#25Re: Kafka at the low end: how bad can it get?
#26Earlier quoted context omitted.
Until you hit scale, the database you're already using is fine. If that's Postgres, look up SELECT FOR UPDATE SKIP LOCKED. The major convenience here - aside from operational simplicity - is transactional task enqueueing. For hosted, SQS or Google Cloud Tasks. Google's approach is push-based (as opposed to pull-based) and is far and above easier to use than any other queueing system.
Famious last words. There are database as a queue antipattern warnings about this.
https://mikehadlow.blogspot.com/2012/04/database-as-queue-an...
The main complaint seems to be that it's not optimal...but then, the frame of the discussion was "Until you hit scale", so IMHO convenience and simpler infra trumps having the absolute most efficient tool at that stage.
Re: Kafka at the low end: how bad can it get?
#27Ultimately, the system was fast enough that the telco company emailed us and asked to slow down our requests because their API was not keeping up.
In short: we had two Apache Camel based apps: one to look at the database for paid content schedule, and queue up the messages (phone number and content). Then, another for triggering the telco company API.
Re: Kafka at the low end: how bad can it get?
#28Kafka for small message volumes is one of those distinct resume-padding architectural vibes.
Re: Kafka at the low end: how bad can it get?
#29What do people recommend? Especially for low levels of load, that doesn't require that the dispatcher and consumer are written in the same language.
Re: Kafka at the low end: how bad can it get?
#30Kafka for small message volumes is one of those distinct resume-padding architectural vibes.