High-Level Design (HLD / Distributed Systems) Interview Questions & Answers — Cracked Java
Cracked Java console
0
S
Modules/High-Level Design (HLD / Distributed Systems)
// MODULE · 28 TOPICS · 70 QUESTIONS

High-Level Design (HLD / Distributed Systems)

Distributed systems and large-scale architecture interview preparation. Fundamentals (CAP, consistency, replication), building blocks (caches, queues, databases), and full system designs across FAANG, EU, and regional interview styles.

0%
Reviewed
0 / 70
Topics done
0 / 28
Est. time left
~60h
Next up
The HLD Interview Framework
28 topics · tap to expand
01

The HLD Interview Framework

MidNot started

The canonical 4-step approach (requirements → estimation → high-level design → deep dive), capacity-estimation method, time budgeting, and how FAANG / EU / regional styles differ.

01The canonical 4-step HLD framework.Mid02Questions to ALWAYS ask before designing (functional + non-functional + scale).Mid03How to do capacity estimation: DAU → QPS, storage, bandwidth.Senior
02

CAP Theorem, PACELC, Consistency Models

SeniorNot started

CAP stated correctly, the PACELC extension, the consistency spectrum (linearizable → eventual), ACID vs BASE, and quorum reads/writes.

01State CAP correctly. What does Partition tolerance really mean?Senior02PACELC — what does it add to CAP?Senior03Consistency models from strongest to weakest.Senior
03

Replication & Partitioning (Sharding)

SeniorNot started

Single-leader / multi-leader / leaderless replication, sync vs async, replication lag, sharding strategies, consistent hashing, resharding, and hot partitions.

01Single-leader replication — why is it the default? Failure modes?Senior02Multi-leader and leaderless (Dynamo-style) replication.Senior03Replication lag — handling read-your-writes consistency.Senior
04

Caching Strategies

SeniorNot started
05

Message Queues & Event Streaming

SeniorNot started
06

Database Choices — SQL vs NoSQL

SeniorNot started
07

API Design — REST, gRPC, GraphQL, WebSockets

MidNot started
08

Rate Limiting & Throttling (HLD perspective)

SeniorNot started
09

Load Balancing

MidNot started
10

Microservices, Service Mesh, API Gateway

SeniorNot started
11

Storage Systems — Disk, RAM, Object Storage

SeniorNot started

The storage hierarchy and latency numbers, B-trees vs LSM-trees, row vs columnar storage, object/block/file storage, and tiered hot/warm/cold data.

01Latency numbers every engineer should know.Mid02B-tree vs LSM-tree — read vs write trade-offs, write amplification.Senior03Row vs columnar storage — OLTP vs OLAP.Senior
12

CDN & Edge

MidNot started
13

Observability — Logging, Metrics, Tracing

SeniorNot started
14

Design a URL Shortener (TinyURL / bit.ly)

MidNot started

The most common HLD warm-up. ID-generation strategies, SQL vs NoSQL choice, caching, custom URLs, and analytics — with FAANG / EU / regional variants.

01Design a URL shortener — full system-design solution.Mid
15

Design Twitter / Threads (Social Feed)

SeniorNot started

Timeline generation (pull / fan-out-on-write / hybrid), feed ranking, the celebrity (hot-user) problem, media storage, and caching layers.

01Design Twitter / a social feed — full system-design solution.Senior
16

Design a Chat / Messaging System (WhatsApp / Telegram)

SeniorNot started

1:1 and group chat, online presence, delivery/read receipts, media, WebSocket vs polling, and sharding by chat ID.

01Design a chat / messaging system — full system-design solution.Senior
17

Design a Ride-Sharing System (Uber / Lyft)

SeniorNot started

Geospatial indexing (geohash / S2 / H3), driver-rider matching, surge pricing, real-time location tracking, and payment integration.

01Design a ride-sharing system — full system-design solution.Senior
18

Design Instagram / Photo-Sharing

SeniorNot started

Feed generation, image storage and delivery (S3 + CDN), thumbnails, stories (24h TTL), likes/comments at scale, and hashtag search.

01Design Instagram — full system-design solution.Senior
19

Design Netflix / YouTube (Video Streaming)

SeniorNot started

Video encoding pipeline, adaptive bitrate streaming (HLS/DASH), CDN delivery, recommendations, and view counting at scale.

01Design Netflix / YouTube — full system-design solution.Senior
20

Design a Notification Service (at scale)

SeniorNot started

Channel abstraction, template service, user preferences, a delivery queue with retries and DLQ, per-channel rate limiting, and provider failover.

01Design a notification service at scale — full system-design solution.Senior
21

Design a Web Crawler

SeniorNot started

URL frontier (priority + dedup), politeness (robots.txt, per-domain rate limit), DNS caching, content storage, duplicate detection, and distributed coordination.

01Design a web crawler — full system-design solution.Senior
22

Design a Search Autocomplete / Typeahead

SeniorNot started

Trie data structure, prefix caching, top-K suggestions, ranking by popularity/personalization, and the trend-update pipeline.

01Design search autocomplete / typeahead — full system-design solution.Senior
23

Design a Distributed Key-Value Store (Dynamo-style)

SeniorNot started

Consistent hashing, virtual nodes, replication, vector clocks, read repair, Merkle trees, gossip, and sloppy quorum.

01Design a Dynamo-style distributed key-value store — full system-design solution.Senior
24

Design a Distributed Job Scheduler (Cron at Scale)

SeniorNot started

Job queue, worker assignment, leader election (Zookeeper/etcd), missed-run handling, distributed locks, idempotency, and monitoring.

01Design a distributed job scheduler — full system-design solution.Senior
25

Design Google Docs / Collaborative Editor

SeniorNot started

Operational Transformation vs CRDTs, real-time sync over WebSockets, presence, cursor sharing, version history, and offline editing.

01Design Google Docs / a collaborative editor — full system-design solution.Senior
26

Design a Payment System

SeniorNot started

Idempotency keys, distributed transactions via Saga, reconciliation, double-entry bookkeeping, fraud hooks, and processor integration (Stripe/Click/Payme model).

01Design a payment system — full system-design solution.Senior
27

Design an Exam Prep Platform (PrepHub-style)

SeniorNot started

Exam session management, real-time scoring, leaderboards, payment integration, content delivery, and anti-cheat/proctoring — an end-to-end real-system case.

01Design an exam-prep platform — full system-design solution.Senior
28

How to Practice HLD

MidNot started

How many problems to solve, the internalizable template, per-section time-boxing, handling "I don't know" gracefully, and how to signal senior.

01How many problems, what template, and how to signal senior in an HLD round.Mid