CrackOps
Interview PrepTracksLinuxAWS LabSoonInterview RoomSoon
Sign inStart free
CrackOps

Interview prep for the people who keep production up.

[email protected]
ProductInterview PrepTracksDashboardInterview Room
RolesDevOpsSREPlatformCloud
CompanyAboutContactPrivacyTerms
© CrackOps
Tracks/Infrastructure System Design
Expert 4 minSystem design

Design a Kafka event pipeline at massive scale with per-key ordering, safe replay and real backpressure

Scenario

Every member action on a professional social network (profile edits, connections, posts, reactions, job applications) is published as an event. A dozen consumers depend on these events, including feed fan-out, search indexing, notifications and analytics. Peak is about 800,000 events a second per data centre, around 1 KB each, across four data centres. Last month a buggy search-indexer deploy corrupted documents for six hours, and nobody could replay the events cleanly.

The interviewer asks

“Design the member-activity pipeline on Kafka. Tell me how you guarantee ordering where it matters, how a team replays a day of events after a bad deploy, and what happens when a consumer can't keep up.”

The 30-second answer

I'd key every event by the entity whose state consumers derive, usually the member ID, and size partitions up front from the slowest consumer's per-partition throughput with two to three years of headroom, because adding partitions remaps keys. Producers run idempotent with acks=all against RF 3 and min.insync.replicas=2. Retention is a day on local disk and 30 days in tiered storage, and replays run as separate rate-limited consumer groups into idempotent, version-checked sinks. Backpressure is explicit at every layer: bounded in-consumer queues with pause and resume, lag-based autoscaling capped at the partition count, producer buffer policies and broker quotas. Schemas are BACKWARD_TRANSITIVE compatible so replays of old data still decode, DLQs park whole keys for order-sensitive consumers, and MirrorMaker 2 runs a local-plus-aggregate topology across DCs.

Sign in to finish this question

A free account unlocks the rest of it, and saves your progress across every track.

  • The voiced mock interview (4 min)
  • The full senior answer, step by step
  • Animated architecture diagrams
  • The whole conversation, 12 turns
  • Deep dive: how it works, mistakes, risks and trade-offs
  • 3 copy-ready command snippets
  • 5 follow-up questions they'll ask next
  • A self-check of 8 things interviewers listen for
Create a free accountSign in

More Infrastructure System Design interview questions

  • How would you keep a trading platform up all through market hours and prove every change to an auditor?
  • Design disaster recovery for a trading platform with an RTO under 15 minutes and an RPO near zero.
  • You have two weeks to ship multi-region failover for live matches, and DNS failover is off the table. What do you build?
  • Design a UPI payments platform that rides a 10x festival peak without losing or double-charging a payment
  • Leadership wants active-active across two regions for payments. How do you keep transaction state strictly consistent?
  • Design reconciliation so money is never lost or duplicated, even when services crash mid-payment
All Infrastructure System Design questions