System Design Roadmap 09 - Integration Review and Interview Drills

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:34 AM on 7/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards
Design a URL shortener: core components
API service, key generator, URL database, cache for hot redirects, analytics/event queue, abuse prevention, and CDN/edge routing if global.
2
New cards
URL shortener: main bottleneck
Read-heavy redirects. Use cache/CDN, short key indexes, horizontal app scaling, and careful collision/key-generation strategy.
3
New cards
Design a news feed: core components
Post service, social graph/follow service, feed generation, ranking, cache, fan-out workers, notification/event queue, and media storage/CDN.
4
New cards
News feed fan-out tradeoff
Fan-out on write precomputes feeds for faster reads but can be expensive for celebrity users. Fan-out on read saves writes but makes reads slower.
5
New cards
Design chat: core components
Connection gateway/WebSockets, message service, message store, delivery receipts, presence, push notifications, queues, and per-conversation ordering.
6
New cards
Chat consistency concern
Users expect ordered messages within a conversation and no lost messages. Use sequence IDs, durable storage before ack, retries, and idempotent sends.
7
New cards
Design video/image sharing: core components
Upload service, object storage, metadata DB, processing pipeline, CDN, transcoding/thumbnail workers, moderation, and feed/search indexes.
8
New cards
Media pipeline pattern
Accept upload, store original, enqueue processing, generate derived assets, update metadata, and notify clients. Make each step idempotent.
9
New cards
Design payments: core components
Payment API, ledger, idempotency keys, external processor integration, reconciliation jobs, audit logs, fraud/risk checks, and strict authorization.
10
New cards
Payment design invariant
Never double-charge or lose money movement. Prefer durable ledger records, idempotent requests, strong consistency around balances, and reconciliation.
11
New cards
Design metrics/analytics: core components
Event ingestion, queue/stream, processors, time-series or columnar storage, aggregation jobs, dashboards, alerts, and retention policies.
12
New cards
Analytics consistency tradeoff
Analytics can often be eventually consistent. Prioritize high write throughput, cheap storage, deduplication, and late-arriving event handling.
13
New cards
Design maps/proximity search: core components
Geospatial index, location updates, query API, caching, routing service, map tiles/CDN, and privacy controls.
14
New cards
Geospatial indexing options
Geohash/S2/H3 partition space into cells for proximity queries. Choose cell precision based on density, query radius, and update frequency.
15
New cards
Design search: core components
Source database, indexing pipeline, search cluster, ranking, query service, autocomplete, cache, and reindexing/backfill workflow.
16
New cards
Search freshness tradeoff
Near-real-time indexing improves UX but costs more and complicates writes. Batch indexing is cheaper but returns stale results.
17
New cards
Design file storage: core components
Metadata service, object/blob storage, upload/download APIs, permissions, versioning, replication, CDN, and background virus/preview jobs.
18
New cards
System design closing checklist
Call out bottlenecks, failure modes, consistency choices, security, monitoring, scaling path, cost tradeoffs, and what you would test first.
19
New cards
Most common interview mistake
Jumping to components before requirements and scale. First clarify users, operations, data size, latency/availability targets, and constraints.