Design Incremental Trip Data Lake Ingestion With Late Upserts

Last updated: November 29, 2026

Quick Overview

Design the pipeline that lands every trip record from production databases into the analytics data lake within minutes, where trips keep changing for days (fare adjustments, ratings, refunds) and analysts need correct, deduplicated tables.

Uber
System Design
Data Engineer
Uber
November 29, 2026
Data Engineer
Onsite
System Design
Hard

0

0

0 solved


Design the pipeline that lands every trip record from production databases into the analytics data lake within minutes, where trips keep changing for days (fare adjustments, ratings, refunds) and analysts need correct, deduplicated tables.

Uber built Apache Hudi precisely because trip data mutates long after the trip ends, so this question checks whether you understand upserts on a data lake rather than append-only logs. Interviewers look for CDC, record keys, file layout, incremental consumption, and how you keep compaction from breaking freshness.

What the Interviewer Expects
  • Capture changes with CDC rather than nightly full dumps
  • Explain upserts on object storage via a record key and an index
  • Compare copy-on-write and merge-on-read and pick per table
  • Support incremental pulls for downstream jobs
  • Handle schema evolution and late or out-of-order events
  • Describe data quality checks before publishing
Key Topics to Cover
Change data capture
Upserts on object storage
Copy-on-write vs merge-on-read
Incremental processing
Schema evolution
Compaction
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 rating arrives nine days after the trip. Which files get rewritten?
  • How do downstream jobs read only what changed since their last run?
  • How would you handle a GDPR deletion request for one rider across years of data?
  • What breaks if two writers commit to the same table concurrently?
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

Source: sharded MySQL and schemaless stores for trips, plus Kafka events. Target: a trips table on HDFS or S3 queried by Presto, Spark, and Hive. Freshness under 15 minutes; exactly one current row ...

High-Level Design
  1. CDC: binlog readers (Debezium style) publish row changes to Kafka topics keyed by primary key, with a commit timestamp and op type.
  2. Ingestion job (Spark streaming, micro-batches every fe...

Submit Your Answer
Markdown supported