Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1137 original problems, each with a worked model answer.
43 easy724 medium370 hard
Showing 511–540 of 1137 results
Design a text messaging service where conversations are stored durably, messages arrive live, and clients recover cleanly from disconnects, retries, and duplicate events.
Model answersystem-designchatwebsocketsidempotencyDesign a long-term document storage service: estimate storage with replicas, add ingestion-time deduplication, and layer encryption, key management, authorization and versioning.
Model answercapacity-estimationdeduplicationencryptionobject-storageDesign a scalable service that ingests a massive stream of view events and serves the most popular items over a rolling 60-minute window, allowing slightly approximate results.
Model answersystem-designstreamingtop-ksliding-windowDesign a low-latency service that stops an ad platform from showing a user the same ad or campaign more than an allowed number of times per time window, across regions.
Model answersystem-designdistributed-systemscountersredisDesign a service where users set price-level triggers on securities and get notified quickly, exactly once, through push, email or SMS, even during market-open bursts.
Model answersystem-designevent-drivennotificationsdeduplicationAudit and cut a 5-second cold-cache load on a retail landing page, then design a browser table that can browse 10 million API records without freezing or crashing.
Model answerfrontend-performanceweb-vitalsvirtualizationpaginationDesign a duplicate-file cleanup tool that survives live, messy filesystems: handle errors, races, loops, scale and hash choices, and make deletions provably safe.
Model answerfile-deduplicationfilesystemshashingconcurrencyExplain each line of a bash script that builds a Python virtual environment, predict its output and files, and argue why shell automation suits environment setup.
Model answerbashpython-venvpipautomationDesign a horizontally scalable Spring Boot order backend that survives deploys and traffic spikes while guaranteeing that invoice and email jobs are never lost.
Model answerspring-boothigh-availabilitymessage-queuetransactional-outboxDescribe how to parse JSON point data, decide how points connect, build the drawing service's request, and recover safely from failures without creating duplicate drawings.
Model answerapi-integrationjson-parsingidempotencyerror-handlingDesign a service that gathers remittance quotes from many providers, computes true customer cost against a mid-market rate, and clearly marks stale or missing data.
Model answersystem-designcachingfault-tolerancedata-normalizationDesign the service that ingests retailer product, price and stock data and serves store-scoped browse, search and item pages, while keeping checkout prices consistent.
Model answersystem-designcatalogdata-ingestionsearchDesign a backend for a social platform where users publish brief posts, follow each other, and read a recent-posts home feed, covering feed delivery, storage, caching, and abuse controls.
Model answersystem-designnews-feedfan-outcachingDesign a platform that routes skill-specific manual tasks to human operators with leases, heartbeats, fair prioritization, and safe automatic reassignment after failures.
Model answersystem-designtask-queueleasesdistributed-systemsAudit a small web stack ahead of a 50x traffic spike, pick the three most dangerous weaknesses, propose fixes, and plan the work for three engineers over four weeks.
Model answerarchitecture-reviewscalabilityavailabilitycachingDesign a service that turns courier delivery lifecycle events into correct, auditable payouts, covering idempotency, ordering, time zones, data repair, and reconciliation.
Model answersystem-designidempotencyevent-drivenpaymentsDescribe how to run performance benchmarks and functional regression tests as separate tracks, and how to cut a benchmark's shared-cluster footprint while keeping results comparable.
Model answerqabenchmarkingregression-testinghpcDesign a cloud blob store that accepts huge files in parts, keeps them durable across machine and site failures, and scales to petabytes with heavy concurrent traffic.
Model answerobject-storagemultipart-uploadreplicationerasure-codingDesign a service that finds byte-identical files across billions of stored objects and lets clients check for existing content before uploading, while keeping network transfer low.
Model answersystem-designdeduplicationhashingdistributed-storageDesign a multi-step conversational search assistant over a read-only catalog that clarifies intent, enforces hard constraints, grounds answers in records, and falls back safely.
Model answeragentic-searchretrievalllm-agentsgroundingDesign a platform that lets a product authorize customer accounts at many external vendors, run actions against them, and ingest their events reliably, with new connectors cheap to add.
Model answersystem-designintegrationswebhooksidempotencyDesign an extensible, object-oriented library and CLI that walks directory trees, filters entries with composable predicates, and handles symlinks, errors, and huge trees.
Model answerobject-oriented-designfilesystempredicatestraversalDesign a scheduling service where users in different time zones create, edit and query one-off and repeating events, with correct behavior across daylight saving changes.
Model answersystem-designcalendartime-zonesrecurrenceDesign a service that ingests text, scanned and table-heavy PDFs, answers questions with page-level citations, and keeps its index correct as documents are replaced or removed.
Model answerragdocument-parsingvector-searchcitationsDesign a worldwide ticketing service that survives on-sale stampedes, gives fast seat-map reads, and guarantees every seat is sold to at most one buyer.
Model answersystem-designconcurrencydistributed-systemscachingPlan an end-to-end training setup for a bilingual sparse-expert language model on about 1T tokens and 256 A100-80GB GPUs, including a path to 1,024 GPUs.
Model answermixture-of-expertsdistributed-trainingexpert-parallelismllm-pretrainingDesign an internal payment service that charges a card at most once per order despite retries, timeouts and crashes, and reconciles its records with an external payment provider.
Model answeridempotencydistributed-systemspaymentsreconciliationDesign a metadata-driven service that lets quants and PMs find, trust and query licensed vendor market data, with lineage, entitlements, freshness alerts and point-in-time reads.
Model answersystem-designdata-catalogbitemporalentitlementsDesign a batch pipeline that screens stored audio files for policy violations, labels each as safe, unsafe or uncertain, and routes uncertain ones to human reviewers.
Model answerml-system-designaudiopipeline-orchestrationhuman-in-the-loopDesign a platform that links merchants to external sources, refreshes their attributes on schedule, resolves conflicts with provenance, and serves low-latency reads even when upstreams fail.
Model answersystem-designdata-pipelinesentity-resolutionrate-limiting