ayushsalampuriya.xyz Revise

Backend System Design

Backend System Design Overview

What interviewers evaluate, how a 45–60 minute round is structured, and the framework you should follow every time.

1. Interview structure

Backend system design interviews evaluate whether you can design systems that are scalable, reliable, and maintainable — and explain trade-offs clearly under time pressure.

2. Interview framework (45–60 minutes)

2.1 Clarify requirements (~5 minutes)

Functional requirements

Non-functional requirements

Ask clarifying questions out loud. Do not invent scale silently.

2.2 Back-of-envelope estimation (~3–5 minutes)

Compute enough numbers to justify later choices:

See Estimation for the full method and reference tables.

2.3 High-level design (~10–15 minutes)

Name the main components and draw data flow:

Client / Mobile / Web → API Gateway / Load Balancer → Application servers (stateless) → Cache (Redis) → Primary DB + read replicas → Message queue → background workers → Object storage / CDN (if media)

Start with the simplest design that meets requirements. Add pieces only when scale or reliability demands them.

2.4 Deep dive (~15–20 minutes)

Pick 2–3 areas and go deep:

2.5 Wrap up (~5 minutes)

3. Key trade-offs (always be ready)

Trade-offOption AOption B
SQL vs NoSQLACID, complex queriesHorizontal scale, flexible schema
Consistency vs AvailabilityMoney, inventoryFeeds, analytics
Push vs PullReal-time UXHuge fan-out
Cache vs DatabaseRead-heavy latencyWrite-heavy consistency
Sync vs AsyncSimple, immediate feedbackDecoupling, reliability

4. Preparation guidelines

  1. Practice verbal explanation — this is a discussion, not a monologue.
  2. Draw diagrams — visual communication matters.
  3. Memorize reference numbers — latency, throughput, storage.
  4. Study production systems — Netflix, Uber, Airbnb eng blogs.
  5. Start simple, then scale — never jump to Kafka on minute two.

5. Common interview questions

Practice full designs after you know the framework. Grouped the same way as the System Design hub:

Data Systems

Real-Time Systems

Content and Social

Infrastructure

More practice: YouTube, Google Drive, Payment System, Booking System, and others on the hub.

Quick revision

  • Order: Clarify → estimate → HLD → deep dive → wrap-up.
  • NFRs: RPS, latency, consistency, read/write ratio.
  • Start simple: one app + DB; add cache/LB/queue when needed.
  • Trade-offs: say why you chose SQL/NoSQL, sync/async, push/pull.
  • Ops: metrics, alerts, failover — mention at the end.