Series
Kafka Payments
10 episodes, in order. The code builds on itself, so following from the start leaves you with a complete system rather than a pile of samples.
-
Kafka Ordering Explained: Why Your Messages Still Arrive Out of Order →
Kafka guarantees ordering - but only within a partition. Here is what that actually means, why your consumer can still break it, and a repo you can run to watch it happen.
-
Kafka Partitions Explained: Why More Consumers Do Not Always Make You Faster →
You added consumers and nothing got faster. One of them is running, healthy, and doing nothing at all. Here is why partitions, not consumers, set your limit, and what it costs to change it.
-
Kafka Rebalancing Explained: The Failure That Looks Random →
Every consumer reports healthy, the dashboard is green, and the lag climbs anyway. Here is what a rebalance actually moves, why a slow consumer gets evicted for being slow rather than dead, and where the duplicate comes from.
-
Kafka Offsets Explained: What "Exactly Once" Really Means →
An offset is not where your consumer is. It is recorded progress, and you decide when to record it. That decision, and nothing in Kafka, is what makes your system at most once or at least once.
-
Kafka Idempotency: How to Survive Duplicate Messages →
The duplicate is expected. The question is what your consumer does with it. And the implementation that passes code review is the one that fails under load.
-
Kafka Retries and Dead Letter Topics: Stop Retrying Everything →
A retry is a prediction that something relevant may be different on the next attempt. If nothing can change, retrying is not resilience. It is repetition.
-
Kafka Transactions and the Transactional Outbox: Where Atomicity Stops →
The payment committed. The process died. The event was never published. Both orderings leak, and the fix is not the one most people reach for first.
-
Kafka Observability: What Should You Actually Watch? →
Every service is green and payments are twenty minutes late. No single metric tells you where the system is broken, and the layer most teams build is the least useful one.
-
Build a Production-Grade Kafka Payment Pipeline →
One payment, five deliberate failures. No single feature makes the pipeline reliable. Reliability is the overlap between eight of them.
-
Senior Kafka Architecture Challenge: Would Your Design Survive? →
Nine changes to one architecture. The first-order answer is easy. The interview is decided by the second-order effect, and by knowing what not to build.