by jonahx · 10y ago · 0 comments
> Apache Kafka is a distributed commit log for fast, fault-tolerant communication between producers and consumers using message based topics. Kafka provides the messaging backbone for building a new generation of distributed applications capable of handling billions of events and millions of transactions
Can anyone translate this into meaningful English for me?
Very useful if, say, you have some real world event and dozens of different micro services need to do something about that event, independently.
You can also just use it for logging.
If you're actually interested in Kafka, just read the documentation, it's quite good.
Biggest competitors of Kafka are RabbitMQ and amazon SQS.
Biggest competitors would be AWS Kinesis, Azure EventHubs and Google PubSub.
We use it to ingest ~40mb/s and fan it out to a number of consuming applications.
I'll also add that if you put some thought behind your topic replication and partitioning you can build some incredibly resilient applications. Also that "immutable" isn't necessarily true, it's common for Kafka topics to roll off messages based on time or size. (That's just to clarify for those not familiar with Kafka. I realize that you mean messages are not deleted or modified once written to a topic, other than by topic retention settings)
To me, Kafka is just meant for much larger magnitudes of scale and persistence (of the entire log of messages for however long you need) as a core feature.
Google's PubSub is still the best blend of traditional queue semantics with Kafka scale and persistence though.
Except if you have log compaction turned on, I guess.
A key "selling point" of Kafka for me is that each consumer can decide from when they wish to receive messages. That is, you can replay the messages.
https://medium.com/salesforce-engineering/the-architecture-f...