← ALL INTERVIEW BLUEPRINTS
An end-to-end domain learning journey

How to Prepare
for HLD Round.

Master the 45-minute HLD interview using the RESHADED framework: scope requirements, estimate QPS/storage, design APIs and data models, and deep-dive into bottlenecks and failure modes.
Start the journey4 stages· Last modified Nov 29, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

When designing systems in Senior HLD rounds, tie every storage, sharding, and caching decision directly to your read/write ratio and p99 latency budget so trade-offs stay defensible.

TL;DR30-second simplified summary
▾

Senior interviews evaluate whether you can size a system accurately and avoid premature distributed complexity.

State explicit trade-offs for every component you add and verify failure isolation.

Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Back-of-the-Envelope Estimation & Powers of Two
Convert DAU, request rates, and payload sizes into average QPS, 3x peak QPS, 5-year storage, and hot-set RAM in under 5 minutes.
Distributed Systems & Storage Fundamentals
Understand SQL vs. NoSQL trade-offs, consistent hashing, replication lag, idempotency keys, and bounded retry/backpressure patterns.
Full walkthrough · 4 stages
01
STAGE 01 · RESHADED BLUEPRINTfoundation

Why This Blueprint Exists & Core Evaluation Contract.

Why this matters: Establish the 45-minute RESHADED evaluation rubric, pacing milestones, and capacity-first discipline.

Most HLD interviews fail in the first 10 minutes—not from lack of distributed systems knowledge, but from designing the wrong system at the wrong scale. Using a repeatable framework (Back-of-the-Envelope Estimation + CAP/Consistency + bottleneck deep dives) keeps you driving the 45-minute session like a Staff or Principal engineer.

When to Apply This Blueprint:

  • 45–60 minute Senior/Staff/Principal High-Level Design rounds (e.g., Design a Rate Limiter, URL Shortener, Payment Ledger, or Notification Engine).
  • Structuring open-ended architecture reviews with explicit trade-off matrices.

Core Evaluation Checkpoints:

  • Minutes 0–5 (Requirements & Scope): Lock 3–4 core functional requirements and 2–3 non-functional SLOs (availability, p99 latency, consistency).
  • Minutes 5–10 (Estimation): Compute average QPS, peak QPS (3x), daily/5-year storage, and cache RAM using powers of 2.
  • Minutes 10–25 (Core API & High-Level Architecture): Define clean REST/gRPC contracts, storage schema (SQL vs. NoSQL), and end-to-end read/write paths.
  • Minutes 25–45 (Deep Dives & Failure Modes): Address hot keys, sharding, idempotency, backpressure, and multi-AZ failover.
AD-HOC ANSWERS VS. STRUCTURED RUBRIC

Applying RESHADED Discipline Under Interview Time Pressure

Before · Unstructured Ad-Hoc Response
  • No explicit QPS or SLOs
  • Misses hot keys & skew
  • Vague trade-offs
After · RESHADED Blueprint Execution
  • SLO & capacity-first framing
  • Explicit invariants & partition keys
  • Candid failure & trade-off audit
02
STAGE 02 · WORKED INSTANTIATIONS & TRADE-OFFScore

Applying RESHADED Across Classic HLD Problems & Trade-Offs.

Why this matters: Connect the RESHADED blueprint to concrete HLD problem archetypes and core distributed-systems trade-off dimensions.

Every HLD prompt—whether a URL Shortener, Rate Limiter, Payment Ledger, or Notification Engine—specializes the same RESHADED rubric around its dominant bottleneck: read amplification, write contention, strict financial correctness, or fan-out bursts.

Core Architectural Trade-Offs:

  • SQL vs. NoSQL (trade-offs): Choose PostgreSQL/MySQL when ACID transactions, secondary indexes, and relational integrity matter (e.g., Payment Ledger); choose partitioned wide-column or key-value stores (DynamoDB, ScyllaDB) when write throughput exceeds single-primary limits and access patterns are strictly key-bound.
  • Synchronous vs. Asynchronous Paths: Keep user-facing validation synchronous under strict p99 budgets (<50 ms), and push fan-out, analytics, and webhook delivery behind an append-only event log (Kafka) for spike absorption.
  • Cache-Aside vs. Write-Through: Use cache-aside with jittered TTLs and request coalescing for read-heavy workloads (100:1); avoid write-through unless read-after-write freshness justifies double-write latency.
RESHADED SPECIALIZATION MAP

Mapping RESHADED to Core HLD Problem Archetypes

RESHADED Blueprint(Scope -> Math ->…Read-Heavy Cache(URL Shortener /…Strict Consistency(Payment Ledger /…Async Fan-Out(Notifications /…100:1 R/W -> Redis +read replicasACID + idempotencykeysKafka + bounded workerpools + DLQ
Engineering Decision Framework
Problem
How to choose between a single-region relational database and a partitioned distributed NoSQL store during a 45-minute HLD interview.
Naive Solution
Default to Cassandra or DynamoDB for every prompt regardless of QPS, or force complex cross-shard transactions onto a single unsharded SQL node.
Why It Fails
Premature NoSQL sacrifices ACID guarantees and complicates queries unnecessarily; conversely, ignoring write-IOPS limits on a single primary causes saturation under 50k+ write QPS.
Alternatives
Compare single-primary SQL + read replicas + Redis cache against hash-sharded SQL (Vitess/Citus) or wide-column NoSQL (ScyllaDB/DynamoDB) based on your minute 5–10 math.
Engineering Decision
If peak writes fit comfortably on one primary (<5k–10k write QPS) and ACID joins are needed, start with SQL + read replicas + cache; shard or move to wide-column NoSQL only when write IOPS or dataset size exceeds single-node limits.
Trade-Offs
Starting simple minimizes operational toil and preserves ACID correctness, while explicitly stating your sharding trigger demonstrates readiness for hyper-scale.
Decision Exercise · Make the Call

You are designing a Payment Ledger handling 1,500 peak write QPS with strict zero-double-charge guarantees. Which storage and retry design is strongest?

03
STAGE 03 · DEEP DIVEdeepDive

Back-of-the-Envelope Estimation & Timeboxing Matrix.

Why this matters: Execute fast, accurate QPS, storage, and memory math in minutes 5–10 without getting bogged down in arithmetic.

Preparation & Execution Matrix

| Timebox | Stage | Key Questions to Answer | | :--- | :--- | :--- | | 0–5m | Requirements | Who are the users? Read/write ratio? Consistency vs. availability? | | 5–10m | Capacity Math | Avg/Peak QPS? 5-yr storage? Hot-set RAM? | | 10–25m | HLD & Schema | Core endpoints, DB choice, partition key, caching layer | | 25–45m | Deep Dive | Hot-partition mitigation, replication lag, DLQ, observability |

Fast Powers-of-2 & QPS Rules

  • Seconds per day: $86,400 \approx 10^5$ for quick mental division (100M req/day≈1,000 QPS100\text{M req/day} \approx 1,000\text{ QPS}, peak 3×≈3,000 QPS3\times \approx 3,000\text{ QPS}).
  • Storage units: 1 KB=1031\text{ KB} = 10^3, 1 MB=1061\text{ MB} = 10^6, 1 GB=1091\text{ GB} = 10^9, 1 TB=10121\text{ TB} = 10^{12} bytes (use $1024$ when sizing exact RAM/disk).
  • Hot-set caching (80/20 rule): Caching the top 20% of daily active read data in RAM typically absorbs 80%+ of read traffic. For 100M reads/day at 1 KB/record, daily data is 100 GB and hot-set RAM is ~20 GB—easily served by a single Redis node.
LIVE INTERVIEW PACING LOOP

45-Minute RESHADED Candidate-Interviewer Cadence

CandidateInterviewerWhiteboard1. 0–5m: Confirm functional scope,R/W ratio & p99 SLOs2. 5–10m: Write avg/peak QPS, 5-yrTB & cache RAM3. 10–25m: Draw APIs, DB schema,shard key & data path4. 25–45m: Probe hot keys,failover, retries & observability

Driving the timebox proactively ensures 20 full minutes remain for high-signal bottleneck and failure-mode deep dives.

04
STAGE 04 · DEEP DIVEdeepDive

Operational Readiness, Failure Modes & Capacity Helpers.

Why this matters: Verify production readiness (partial failures, backpressure, observability) and automate capacity math checks in Python and Java.

Operational Readiness Checklist (Minutes 25–45)

  1. Partial Failures & Retries: Bound every RPC with explicit timeouts, exponential backoff + full jitter, and circuit breakers.
  2. Thundering Herds & Hot Keys: Protect caches with request coalescing and jittered TTLs; split celebrity shard keys via salting or L1 local caches.
  3. Backpressure & Queues: Bound in-memory queues, shed excess edge load with HTTP 429/503, and route poison pills to a Dead-Letter Queue (DLQ).
  4. Graceful Degradation & Ordering: Split failure behavior by criticality (serve stale cache or fail-open for non-critical reads; fail-closed for auth and ledger writes), and never rely on wall-clock timestamps (NTP drift) for distributed ordering—use monotonic sequence IDs or fencing tokens.
  5. Observability: Track RED metrics (Rate, Errors, Duration p50/p99/p999), Kafka consumer lag, and end-to-end distributed trace IDs.

Capacity Estimation Helpers (Python & Java)

from dataclasses import dataclass


@dataclass(frozen=True)
class CapacityEstimate:
    avg_qps: float
    peak_qps: float
    five_year_tb: float
    cache_ram_gb: float


def estimate_hld_capacity(
    daily_active_users: int,
    requests_per_user_per_day: int,
    avg_payload_bytes: int,
    peak_multiplier: float = 3.0,
    hot_set_ratio: float = 0.20,
) -> CapacityEstimate:
    """Compute back-of-the-envelope QPS, 5-year storage, and cache RAM."""
    if daily_active_users <= 0 or requests_per_user_per_day <= 0 or avg_payload_bytes <= 0:
        raise ValueError("DAU, requests per user, and payload bytes must be positive")
    if peak_multiplier < 1.0 or not (0.0 < hot_set_ratio <= 1.0):
        raise ValueError("Invalid peak multiplier or hot_set_ratio")

    seconds_per_day = 86_400
    daily_requests = daily_active_users * requests_per_user_per_day
    avg_qps = daily_requests / seconds_per_day
    peak_qps = avg_qps * peak_multiplier

    daily_bytes = daily_requests * avg_payload_bytes
    five_year_tb = (daily_bytes * 365 * 5) / (1024 ** 4)
    cache_ram_gb = (daily_bytes * hot_set_ratio) / (1024 ** 3)
    return CapacityEstimate(avg_qps, peak_qps, five_year_tb, cache_ram_gb)
public record CapacityEstimate(
    double avgQps,
    double peakQps,
    double fiveYearTb,
    double cacheRamGb
) {
    public static CapacityEstimate compute(
        long dailyActiveUsers,
        int requestsPerUserPerDay,
        int avgPayloadBytes,
        double peakMultiplier,
        double hotSetRatio
    ) {
        if (dailyActiveUsers <= 0 || requestsPerUserPerDay <= 0 || avgPayloadBytes <= 0) {
            throw new IllegalArgumentException("DAU, requests per user, and payload bytes must be positive");
        }
        if (peakMultiplier < 1.0 || hotSetRatio <= 0.0 || hotSetRatio > 1.0) {
            throw new IllegalArgumentException("Invalid peakMultiplier or hotSetRatio");
        }

        double dailyRequests = (double) dailyActiveUsers * requestsPerUserPerDay;
        double avgQps = dailyRequests / 86_400.0;
        double peakQps = avgQps * peakMultiplier;

        double dailyBytes = dailyRequests * avgPayloadBytes;
        double fiveYearTb = (dailyBytes * 365.0 * 5.0) / Math.pow(1024.0, 4);
        double cacheRamGb = (dailyBytes * hotSetRatio) / Math.pow(1024.0, 3);
        return new CapacityEstimate(avgQps, peakQps, fiveYearTb, cacheRamGb);
    }
}
FRAGILE HAPPY PATH VS. PRODUCTION-HARDENED HLD

Hardening an HLD Architecture Under Faults & Traffic Spikes

Before · Fragile Happy-Path Design
  • Unbounded retries (5x–10x load)
  • Cache stampedes hit DB
  • No DLQ or lag alerts
After · Production-Hardened Architecture
  • Bounded jittered retries + timeouts
  • Request coalescing + jittered TTLs
  • p99 histograms + DLQ + lag alerts
Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 4
Score: 0/4

In a 45-minute HLD interview using RESHADED, what must be established in the first 10 minutes before drawing storage or caching components?

Recommended Learning Flow