Design Real-Time Orders Per Minute Metrics for Prime Day

Last updated: November 29, 2026

Quick Overview

Design the pipeline and dashboard that show orders per minute, revenue and checkout errors by marketplace and category in near real time during Prime Day, with automatic anomaly alerts for sudden drops.

Amazon
System Design
Data Engineer
Amazon
November 29, 2026
Data Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the pipeline and dashboard that show orders per minute, revenue and checkout errors by marketplace and category in near real time during Prime Day, with automatic anomaly alerts for sudden drops.

Asked of data engineers and SDEs on Amazon retail analytics teams, since a drop in order rate is often the first signal of an outage. The interviewer checks streaming aggregation, late events, exactly-once counting, and how anomaly detection handles a day that is unusual by design.

What the Interviewer Expects
  • Consume order events from a stream and aggregate in tumbling one minute windows
  • Handle late and duplicate events with watermarks and order ID dedup
  • Pre-aggregate by a bounded set of dimensions
  • Serve a dashboard from a fast time-series store
  • Detect anomalies against a forecast, not a static threshold
Key Topics to Cover
Stream processing
Windowed aggregation
Watermarks
Deduplication
Anomaly detection
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 would you reconcile real-time numbers with the official batch numbers?
  • How do you count unique buyers per minute cheaply?
  • What baseline do you compare against on a day with no historical equivalent?
  • How would you handle a marketplace whose events stop arriving?
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: per minute metrics: orders, units, revenue, checkout errors, by marketplace, device and top level category; a dashboard with 10 second refresh; alerts when orders drop significantly ve...

High-Level Design
  1. Order service publishes OrderPlaced and CheckoutFailed events to a partitioned stream (Kinesis or Kafka style), keyed by order ID.
  2. Stream processor (Flink style) dedups by order ID, ...

Submit Your Answer
Markdown supported