Design Retail Clickstream Ingestion Into an S3 Data Lake

Last updated: November 29, 2026

Quick Overview

Design the pipeline that collects page views, clicks and add-to-cart events from Amazon web and app clients and lands them in an S3 data lake, queryable by analysts within 15 minutes.

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

0

0

0 solved


Design the pipeline that collects page views, clicks and add-to-cart events from Amazon web and app clients and lands them in an S3 data lake, queryable by analysts within 15 minutes.

Data engineering loops at Amazon often use clickstream because every retail team depends on it. The interviewer checks schema management, partitioning for query cost, exactly-once versus at-least-once trade-offs, and handling of late mobile events.

What the Interviewer Expects
  • Estimate event volume and size and pick a durable buffer
  • Define an event schema with versioning and a registry
  • Choose file format, partitioning and compaction in S3
  • Handle late and duplicate events explicitly
  • Make data discoverable and queryable (Glue catalog, Athena, Redshift Spectrum)
Key Topics to Cover
Streaming Ingestion
Data Lake
Parquet
Partitioning
Schema Evolution
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 backfill a day of events after a bug in the enrichment job?
  • How do you delete one customer's events for a privacy request?
  • What would make you choose Iceberg or Hudi tables over plain Parquet partitions?
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: collect events from browsers and apps, enrich with session and geo data, land in S3, query with SQL. Non-functional: on the order of millions of events per second at peak (roughly 1 KB eac...

High-Level Design

Clients batch events and POST to a Collector fleet at the edge, which validates against the schema registry and writes to Kinesis Data Streams (or MSK) partitioned by session id. A streaming job (Flin...


Submit Your Answer
Markdown supported