Design Order Event Change Data Capture into the Analytics Warehouse
Last updated: November 29, 2026
Quick Overview
Design a pipeline that captures every change to orders, deliveries and payments in DoorDash's production databases and lands it in the analytics warehouse within minutes, with correct history for finance and data science.
DoorDash
November 29, 20260
0
0 solved
Design a pipeline that captures every change to orders, deliveries and payments in DoorDash's production databases and lands it in the analytics warehouse within minutes, with correct history for finance and data science.
DoorDash runs heavily on experimentation and marketplace analytics, so data engineering loops probe how production state reaches the warehouse reliably. Interviewers look for an understanding of CDC, schema evolution, exactly-once concerns and how analysts query current state versus history.
What the Interviewer Expects
- Prefer log-based CDC over dual writes or nightly dumps and explain why
- Describe ordering, keys and partitioning in the event stream
- Handle schema changes without breaking consumers
- Model both a current-state table and an append-only history
- Explain deduplication and late or replayed events
- Define freshness and correctness SLAs with monitoring
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you backfill a new table that has five years of history?
- How would you handle a column being dropped upstream by the orders team?
- How do you reconcile warehouse revenue against the payments ledger?
- What changes if deletes must be honored for privacy requests?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Sources are sharded Postgres (or CockroachDB) clusters behind order, delivery and payment services. We need every insert, update and delete landing in the warehouse (Snowflake or a lakehouse on S3) wi...
High-Level Design
- Capture: Debezium-style connectors read each database's write-ahead log and emit one event per row change with primary key, operation, before and after images, source LSN and commit timestamp. ...