A series · started November 2026
Learning Kafka
Start with Part 1: Why my service shouldn’t wait for anyone →TL;DR
- Kafka is a log split up and copied across machines. Producers add to the end, consumers read at their own pace, and reading deletes nothing.
- The key picks the partition, and order only holds inside one. With
acks=allan acknowledged write survives a dead broker. - Make consumers safe to repeat. The speed comes from appends, the page cache, zero-copy and batching.
I’ve been building a notification service. When money moves, someone logs in or a campaign goes out, the user gets a push, an SMS, sometimes an email, and an in-app inbox row. Kafka sits in the middle.
I treated Kafka as a pipe until I hit questions I couldn’t answer. Why does one partition have all the lag while the others sit idle? How does the same SMS go out twice? What happens to an OTP stuck behind a 300,000-message campaign?
So I learned it from the log up. These are my notes. In one sentence:
Kafka is a log. Producers append facts to the end of it, consumers read it at their own pace, and nothing gets deleted just because someone read it.
Split that log across machines, keep a few copies of every piece, and that’s Kafka. Each module uses the notification service as the example, has demos you can break, and ends with a quick check and a short Q&A.
Roadmap
- 1Published · Nov 2026 · 4 min read
Why my service shouldn’t wait for anyone
Why a payment should not block on five notification channels, seven ways to do it later, and why a log beats a queue.
- 2Published · Nov 2026 · 5 min read
Topics, partitions and keys
The topic is a name, the partition is the real thing: how keys pick a partition, how many partitions to use, and what an offset really is.
- 3Published · Nov 2026 · 6 min read
Consumers: groups, lag and delivery guarantees
Consumer groups, why more instances do not always cut lag, committing offsets, and what “exactly once” really covers.
- 4Published · Nov 2026 · 5 min read
Replication: surviving a dead broker
Leaders, followers and the ISR, who decides who leads, and the full write path of one message.
- 5Published · Nov 2026 · 7 min read
Why Kafka is fast
Sequential disk writes, the page cache and zero-copy: where the speed actually comes from.