Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1130 original problems, each with a worked model answer.
43 easy719 medium368 hard
Showing 61–90 of 1130 results
Design a horizontally scalable telemetry backend that ingests millions of labeled data points per second, stores 30 days of history, and serves fast label-filtered range queries.
Model answersystem-designtime-seriesobservabilityingestion-pipelineDesign an end-to-end platform that streams courier GPS, computes routes and ETAs, manages order assignment, and powers live maps for dispatchers and customers.
Model answersystem-designstreamingkafkageospatialArchitect a scalable calendar service handling interval-based queries, concurrent updates, recurring schedules, and real-time user invitations.
Model answersystem-designdistributed-systemscalendartime-seriesDesign a distributed batch pipeline that exactly counts term occurrences across petabytes of immutable text and returns the 1,000 most common, handling skew, split edges and retries.
Model answerdistributed-systemsmapreducefault-tolerancedata-skewDesign a merchant-embeddable bank-payment checkout component: isolated iframe, safe parent-frame messaging, token exchange, asynchronous settlement, and webhook reliability at high scale.
Model answersystem-designpaymentsiframe-securitypostmessageDescribe a disciplined, evidence-driven method for finding and fixing a slowdown in a multi-service system, from first signals through safe validation to long-term prevention.
Model answerobservabilitydebugginglatencydistributed-tracingDesign an online course review system covering completion checks, transactional rating aggregates, edit histories, and keyset-paginated read paths.
Model answerdatabase-designschema-designsystem-designsqlDesign a startup endpoint that resolves a user's internal ID, fans out to two dependent services, and still returns useful data when optional services fail or run slowly.
Model answerapi-designresiliencetimeoutspartial-failureDesign a large-scale flight search engine that aggregates dynamic fares from multiple third-party sources under low latency constraints.
Model answersystem-designcachingdistributed-systemsapi-designDesign a backend for browsing eateries, posting star ratings and written reviews, and keeping aggregates, search, and moderation trustworthy at scale.
Model answersystem-designreviewssearchmoderationExplain ten core architecture topics: OoO pipelines, gshare, register renaming, VLIW, coherence, load/store logic, COW, cache math, VIPT aliasing, and async FIFOs.
Model answercomputer-architectureout-of-ordercachesbranch-predictionArchitect a flexible background job system capable of scaling 100-fold using partitioned time indices, hierarchical timing wheels, and resilient worker leasing.
Model answersystem-designdistributed-systemsjob-schedulerqueuesDesign an object-oriented service that pushes news to topic subscribers with at-most-once delivery, effective unsubscribes and per-user per-topic ordering, scaling to millions of users.
Model answerpub-subnotificationsfan-outconcurrencyDesign an alert platform that never silently drops a message, tolerates retries and reordering, and keeps users from seeing repeats across push, email, SMS and in-app channels.
Model answersystem-designidempotencyretriesmessage-queuesDesign a distributed system that discovers, fetches and stores web pages at scale while avoiding repeats, honoring site rules, throttling per host, and surviving failures.
Model answersystem-designweb-crawlerdistributed-systemsurl-frontierDesign a backend that pools riders into shared vehicles, matches within 2 seconds at 10k requests/s, prevents double-booking, and streams vehicle positions to riders.
Model answersystem-designgeospatialconcurrencystate-machineDesign the ML system around an existing scoring model to rank currently active livestreams in a shopping app, covering signals, retrieval, rules, serving, and verifying a stream is still on air.
Model answerml-system-designrecommendationreal-time-featuresrankingDescribe how virtual functions are typically implemented in C++, then weigh them against CRTP-based static polymorphism and say when each design is the better fit.
Model answercppvirtual-functionscrtppolymorphismDesign a multi-agent system that turns specs and diffs into reviewed tests, runs them in isolation, repairs broken scripts, and separates script faults from real product regressions.
Model answerllm-agentstest-automationsandboxingworkflow-orchestrationDesign a distributed service that watches start, heartbeat and end messages per job and emits exactly one stall signal when a deadline passes, covering time semantics, sharding, recovery and testing.
Model answersystem-designstreamingtimersidempotencyDesign a store with put, get and delete that starts as a single-node storage engine and grows into a partitioned, replicated cluster with defined consistency and failure handling.
Model answerkey-value-storereplicationpartitioninglsm-treeDesign a platform that sells a fixed number of seats or units to millions of simultaneous buyers, with no oversell, no double charge, and graceful behavior under failure.
Model answersystem-designhigh-concurrencyredisidempotencyDesign a platform where creators broadcast live video to millions of viewers with low delay, adaptive quality, real-time chat, stream discovery, and replay after the stream ends.
Model answersystem-designlive-streamingcdnhlsDesign a payout pipeline that stays correct and pays each courier exactly once when the downstream payment processor is slow, erroring, or down for hours.
Model answeridempotencyretriescircuit-breakerdead-letter-queueDesign a service that decides per caller whether each API request is allowed, then scale it to many users and regions and make its limits more accurate, discussing the trade-offs.
Model answerrate-limitingdistributed-systemsredistoken-bucketDesign a shared platform that ingests error logs from many apps, collapses similar messages into one signature, and answers count, trend and top-N queries reliably during incident spikes.
Model answersystem-designstreamingaggregationtime-seriesDesign a protocol that keeps writes consistent across several services and databases, comparing 2PC, 3PC and Sagas, and covering failures, retries, timeouts and delivery guarantees.
Model answerdistributed-transactionstwo-phase-commitsagaidempotencyDesign an end-to-end, multi-tenant retrieval-augmented question-answering platform over large, mixed-format document collections, with strict isolation, freshness, latency and cost targets.
Model answerragvector-searchml-system-designhybrid-retrievalDesign a chat feed for livestreams where one broadcast may have over a million viewers, with sub-half-second delivery, durable storage and live moderation.
Model answerfan-outwebsocketkafkareal-timeArchitect a high-performance, distributed rate limiting system for an API gateway handling high-throughput, bursty traffic.
Model answerrate-limiterdistributed-systemsapi-gatewayredis