# Data Engineering System Design

> Answer open-ended design questions by clarifying requirements, estimating scale, choosing batch or streaming, designing storage and models, and discussing...

Canonical: https://www.internhack.in/roadmaps/tracks/data-engineer/system-design
Last updated: 2026-11-28

Answer open-ended design questions by clarifying requirements, estimating scale, choosing batch or streaming, designing storage and models, and discussing reliability and trade-offs.

Advanced · about 10 hours · difficulty 4/5

Learn first: [Stream Processing Concepts](https://www.internhack.in/roadmaps/tracks/data-engineer/streaming-concepts), [How Cloud Data Warehouses Work](https://www.internhack.in/roadmaps/tracks/data-engineer/warehouse-concepts), [Orchestration Concepts](https://www.internhack.in/roadmaps/tracks/data-engineer/orchestration-concepts)

Mid-level and many fresher interviews at product companies include a design round: "design the data pipeline for ride analytics" or "how would you build a real-time fraud signal for UPI payments?". There is no single right answer; interviewers assess structure and trade-offs.

### A repeatable framework

1. **Clarify requirements**: who consumes the data, what questions, latency (seconds, minutes, daily), accuracy needs, retention.
2. **Estimate scale**: events per second, daily volume, growth. For example, 10 million orders a day is about 115 per second on average, with peaks several times higher during sales.
3. **Sources and ingestion**: batch extracts, CDC or event streams.
4. **Storage**: lake, warehouse or lakehouse; file formats; partitioning.
5. **Processing**: batch vs streaming, engines, idempotency, late data.
6. **Modeling and serving**: star schema, aggregates, real-time stores or APIs.
7. **Reliability**: retries, backfills, exactly-once vs at-least-once with dedup, monitoring and alerting.
8. **Governance and cost**: PII handling, access, cost drivers.
9. **Trade-offs**: state what you would simplify for v1 and what you would add later.

### Common prompts to practise

Clickstream analytics for an e-commerce app, a daily finance reconciliation pipeline, real-time delivery ETA metrics, a CDC pipeline from 50 microservice databases, a feature store for ML, and a data platform for a new startup on a tight budget.

### Pitfalls

- Jumping to tools ("Kafka and Spark!") before clarifying requirements.
- Ignoring failure modes, backfills and data quality.
- Over-engineering: streaming everything when daily batch meets the need.

You are ready to move on when you can talk through two different design prompts for 30 minutes each, drawing the architecture, estimating scale and defending your trade-offs.

## Key concepts

- **Requirement clarification**
- **Back-of-envelope estimation**
- **Batch vs streaming decisions**
- **Storage and partitioning choices**
- **Reliability and backfills**
- **Cost and governance in design**
- **Communicating trade-offs**

## Mini project

Write full design documents for two prompts (clickstream analytics and a UPI fraud signal), each with an architecture diagram, scale estimates, data model and a trade-offs section. Do a mock design interview with a peer.

## Check yourself

For a clickstream of 50,000 events per second, what latency would you offer for product dashboards, and how does that choice change your architecture?

## Free resources

- [System Design Primer](https://github.com/donnemartin/system-design-primer) (GitHub)
- [Data Engineering Zoomcamp](https://github.com/DataTalksClub/data-engineering-zoomcamp) (DataTalksClub)
- [Apache Kafka documentation](https://kafka.apache.org/documentation/) (Apache Kafka)

Previous: [Capstone: An End-to-End Data Platform](https://www.internhack.in/roadmaps/tracks/data-engineer/capstone) · Next: [Data Engineering Interview Preparation](https://www.internhack.in/roadmaps/tracks/data-engineer/interview-prep)

## More in Portfolio Projects and Interview Preparation

- [Building a Data Engineering Portfolio](https://www.internhack.in/roadmaps/tracks/data-engineer/portfolio-projects)
- [Capstone: An End-to-End Data Platform](https://www.internhack.in/roadmaps/tracks/data-engineer/capstone)
- [Data Engineering System Design](https://www.internhack.in/roadmaps/tracks/data-engineer/system-design)
- [Data Engineering Interview Preparation](https://www.internhack.in/roadmaps/tracks/data-engineer/interview-prep)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Data Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/data-engineer)
