Originally published on Naveed Ahmed's Engineering Blog .
Apache Kafka is often described as a messaging system.
That's partly true, but understanding it as a distributed event log gives you a much clearer picture of how it works.
Producers write records to partitioned topics. Brokers store those records, and consumers read them at their own pace.
Unlike a traditional work queue, Kafka can retain events after they've been consumed, allowing different applications to process or replay them independently.
Let's walk through the key concepts and a small hands-on example.
1.…