Senior Kafka Architecture Challenge: Would Your Design Survive?

13 September 2026 kafkainterviews
PDF The design sheet The full architecture and the verified references. Free, no email.
Thumbnail for Senior Kafka Architecture Challenge: Would Your Design Survive? 11:08
Watch on YouTube, or read on below.
Run this yourself → Clone the repo, docker compose up, and watch it happen

We built the payment pipeline. Now I am going to change one thing, seven times, plus two bonus challenges.

Pause and answer each one before reading on. The first-order answer is easy. The interview is decided by the second-order effect.

1. Three partitions, six consumers

Three consumers get one partition each. Three sit idle. A rebalance happened and achieved nothing.

Partition count is the parallelism ceiling. Extra consumers are standby capacity, not speed.

2. Three partitions become six

First-order: the ceiling doubled.

Second-order, and this is the answer they want: the same key may now hash to a different partition, so old and new records for one account can end up split across two partitions, and per-key ordering between them is no longer promised. And you can never reduce the count again.

Anyone can say “more parallelism”. The interview turns on what it cost.

3. The effect succeeds, then the consumer dies

It replays. Whether the customer is charged twice is decided entirely by your idempotency, not by anything in Kafka.

4. Move failures to a retry topic

Event A fails and is delayed thirty seconds. Event B for the same account succeeds immediately. A returns and succeeds second.

Partition ordering intact. Business ordering inverted. That is a real trade and the answer they want to hear you make knowingly.

5. The external provider response is lost

The request left. The provider may have charged the customer. You know nothing.

Retry only if they will deduplicate, which means passing your key to them. This is the ambiguous failure, and it is only safe because of the key.

6. The outbox relay stops

Payments keep committing. Kafka is healthy. Consumers are healthy.

Nothing is lost and everything stops arriving. Only the age of the oldest unpublished row can see it.

7. Add a second consumer group

No, analytics does not steal messages from notifications. Groups are independent, each with its own committed offsets.

This one is genuinely simple, and it is here on purpose: not every question has a trap.

Bonus: “we enabled transactions, so it is exactly once”

Your first question is not how. It is: exactly once across what?

Bonus: replaying from the dead letter topic

Only safe if the identity outlived the record. Is the claim still present? Has it been cleaned up? Does the replay preserve the original key? Is anything downstream order-sensitive about it arriving now?

The seven questions I would ask any design

#QuestionA weak answer sounds like
1What is the ordering boundary?“Kafka guarantees ordering”
2What identifies one logical operation?“we use a UUID”
3When does progress become durable?“we commit offsets”
4Which failures retry, and which never?“we retry three times”
5Where does atomicity stop?“we use transactions”
6What is invisible while everything is green?silence
7What would you not build here?silence

Anyone can answer one to five from a blog post. Six and seven come from having been on call.

The final trap

Do not copy every mechanism in this series into every Kafka application. A low risk analytics pipeline does not need a payments architecture.

Knowing which of these to leave out is the same skill as knowing how to build them.


Watch next

New videos land on Code with Sam - subscribe there if this was useful.

Get the interview pack

A free, practical pack for engineers preparing for senior backend interviews - the questions that actually get asked, and how to answer them like someone who has done the work.

New articles and videos when they land. No spam, and one click to leave.