Design a Real-Time Submarket Supply and Demand Health Dashboard

Last updated: November 29, 2026

Quick Overview

Design a system that computes live marketplace health metrics per submarket (open orders, active Dashers, supply to demand ratio, average wait and lateness) every few seconds and powers dashboards and automated alerts for operations teams.

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

0

0

0 solved


Design a system that computes live marketplace health metrics per submarket (open orders, active Dashers, supply to demand ratio, average wait and lateness) every few seconds and powers dashboards and automated alerts for operations teams.

DoorDash operates thousands of submarkets and reacts to imbalance with levers like peak pay and delivery radius changes, so ops needs fresh, trustworthy numbers. Interviewers look for streaming aggregation with event time, late data handling, cardinality control and the difference between business metrics and service telemetry.

What the Interviewer Expects
  • Define metrics precisely with event-time windows
  • Design a streaming aggregation pipeline from order and Dasher events
  • Handle late, duplicate and out-of-order events with watermarks
  • Store results in a time-series or OLAP store suited to slicing
  • Drive alerts with anomaly detection that respects seasonality
  • Discuss correctness reconciliation with batch data
Key Topics to Cover
Stream processing
Event-time windows
Watermarks
OLAP store
Anomaly alerting
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
  • How do you compute a gauge like active Dashers right now from a stream of state change events?
  • What happens to metrics when a submarket boundary is redrawn?
  • How would you keep alerts from firing every Friday dinner just because volume rises?
  • How do you expose the same metrics to the automated peak pay system safely?
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

Metrics per submarket at 10 second freshness: open unassigned orders, active Dashers (idle, on delivery), supply/demand ratio, mean and p90 time-to-assign, percent of deliveries predicted late. Also c...

High-Level Design
  1. Services emit domain events to Kafka (OrderCreated, OrderAssigned, DasherOnline, DasherStatusChanged, DeliveryCompleted), each with event time and submarket ID.
  2. A Flink job keyed by su...

Submit Your Answer
Markdown supported