Design an Event Ingestion Pipeline for Billions of Daily Track Calls

Last updated: November 29, 2026

Quick Overview

Design the path from SDK track calls to queryable storage for a product analytics service ingesting billions of events per day, with events visible in reports within a minute, no data loss, and deduplication of retried events.

Mixpanel
System Design
Software Engineer
Mixpanel
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the path from SDK track calls to queryable storage for a product analytics service ingesting billions of events per day, with events visible in reports within a minute, no data loss, and deduplication of retried events.

Mixpanel's ingestion runs on Kafka feeding per-shard storage nodes that write a row-oriented log before compacting to columnar files. Interviewers for infrastructure roles look for durable acknowledgment semantics, sensible partitioning, and a plan for hot customers and late data.

What the Interviewer Expects
  • Clear SLOs: durability on ack, freshness under a minute, throughput with peaks
  • Stateless edge API that acks only after a durable log write
  • Partitioning by project and user so per-user ordering and dedupe are local
  • Separation of fast row-oriented writes from columnar compaction
  • Handling of hot projects, late events and backpressure
  • Concrete failure handling and replay story
Key Topics to Cover
Kafka
partitioning
write-ahead log
compaction
deduplication
backpressure
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A single customer launches a Super Bowl ad and sends 50x normal traffic: what happens end to end?
  • How do you reshard storage when a project outgrows its shards without downtime?
  • How would you support GDPR deletion of one user's events?
  • Where does schema validation (Lexicon-style governance) fit without slowing the hot path?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: accept single and batched events over HTTPS (project_token, event, distinct_id, time, $insert_id, properties); also bulk import of historical data. Non-functional: about 5B event...

High-Level Design

SDK -> global load balancer -> edge API (stateless, validates token, size, timestamp sanity, enriches IP to geo) -> Kafka (replication factor 3, acks=all; return 200 only after the produce i...


Submit Your Answer
Markdown supported

Related Questions