Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1132 original problems, each with a worked model answer.
43 easy720 medium369 hard
Showing 121–150 of 1132 results
Architect a 1-on-1 instant messaging backend relying exclusively on standard HTTP request-response APIs, managing message synchronization, ordering, idempotency, and push delivery at scale.
Model answersystem-designmessagingdistributed-systemshttp-pollingDescribe how Kafka's partitioned, replicated log and consumer groups shape ordering, scale, and resilience, and how to get effectively-once results from a pipeline.
Model answerkafkamessagingdelivery-semanticsreplicationDesign a horizontally scalable direct-messaging backend with live delivery, stored history, presence, per-conversation ordering and fault tolerance for 10 million daily users.
Model answersystem-designwebsocketmessagingcassandraExplain what a deadlock is, the conditions that make one possible, realistic scenarios, and the engineering techniques used to prevent, avoid, detect and recover from them.
Model answerconcurrencydeadlocklockingoperating-systemsInstrument an HTTP client to count and attribute its calls, detect wasteful repeats, reduce them safely, and prove the change is correct and stays fixed.
Model answerobservabilityhttpcachingbatchingWalk through how the JVM places objects in memory, decides which are dead, reclaims them with different collectors, and why leaks and resource problems still occur.
Model answerjavajvmgarbage-collectionmemory-managementDesign a Spark Structured Streaming job that removes retry-induced duplicate click events at 10M/s with a 24-hour window, handling late data, hot keys, idempotent writes, and backfills.
Model answersparkstructured-streamingdeduplicationdata-skewDesign a distributed algorithm and protocol to count all nodes in an N-ary tree using asynchronous message passing, local state, and deduplication.
Model answerdistributed-systemsconcurrencytrees-graphssystem-designDesign a multi-GPU inference platform for a 70B model that streams tokens with low first-token latency, keeps GPUs busy, manages KV cache memory, and survives traffic spikes.
Model answerllm-servingcontinuous-batchingkv-cachepaged-attentionDesign a live bidding service that handles bursts of bids on popular items, keeps a strict per-item order, never loses accepted bids, and streams the leading bid to viewers.
Model answersystem-designreal-timeconcurrencyidempotencyExplain how you would automate bare-metal and Kubernetes delivery, run edge firmware rollouts, reason about IP routing, and describe a homelab that backs up your claims.
Model answerinfrastructure-as-codekubernetesgitopsfleet-managementDesign a service that fires recurring tasks on time-zone-aware schedules, survives crashes, handles missed runs, and avoids duplicate logical runs.
Model answersystem-designschedulerdistributed-systemsidempotencyDesign a platform that pulls in millions of articles daily, removes syndicated copies, groups coverage into evolving stories, and serves fast ranked feeds to tens of millions of users.
Model answersystem-designdeduplicationclusteringfeed-rankingArchitect a platform where tens of thousands of contestants submit code during timed contests, with sandboxed grading, fast verdicts and a continuously updated ranking.
Model answersystem-designsandboxingmessage-queueleaderboardDesign a platform that takes up to a million fire-and-forget events per second and pushes each one to the webhooks of tenants whose filter rules match, with retries, isolation and security.
Model answersystem-designwebhooksevent-streamingmulti-tenancyDesign a per-node client that pulls huge versioned file bundles over ranged HTTP, resumes after failures using verified chunks, and exposes only fully validated bundles.
Model answersystem-designresumable-downloadshttp-rangeatomic-publishDesign a ticketing backend where thousands of buyers compete for the same seats, with temporary holds, safe checkout, and a firm guarantee that no seat is sold twice.
Model answersystem-designconcurrencybookingdistributed-systemsExplain how sync/async differs from blocking/non-blocking, when Go channels or mutexes fit best, and how relational and NoSQL stores compare for backend workloads.
Model answerconcurrencygolangasync-iosql-vs-nosqlDesign a storage and ingestion system for shopper activity events that serves a known set of reports, such as regional unique viewers and top orders, with low latency.
Model answersystem-designanalyticsolapevent-modelingDecide whether a reply to ping proves a server's HTTPS port is usable, and explain how to test the port and narrow down where a failure occurs.
Model answernetworkingtcpicmpfirewallDesign the backend for an on-demand car service: live driver positions, sub-second nearest-driver matching, a reliable trip lifecycle, and no double bookings at city scale.
Model answersystem-designgeospatial-indexingreal-timeconsistencyDesign a scalable backend architecture for a card issuer handling real-time payment processing, fraud detection, ledger management, credit limits, and credit bureau batch exports.
Model answersystem-designfintechevent-drivendistributed-systemsWrite a C++ file-copy tool using POSIX calls, then explain page cache, write-back and kernel-assisted copy, and harden it with RAII, atomic replacement and directory support.
Model answeroperating-systemscppsystem-callsraiiDesign a resilient HTTP API for event ingestion and worker earnings computation, featuring idempotency keys, deterministic windowing, batch partial success, and retries.
Model answerapi-designidempotencyfault-tolerancedistributed-systemsDecide how to combine HDFS, Spark, Hive and SQL Server into a pipeline for 500 TB of logs, analyst SQL, fast executive dashboards and strict governance, and justify what to leave out.
Model answerdata-warehousehadoopsparkhiveDefend a small Spring Boot 3 / Java 21 REST service: explain startup, auto-configuration, proxies, modern Java features, and design and concurrency trade-offs.
Model answerspring-bootjava-21virtual-threadsdependency-injectionExplain how alignment and padding determine object size and layout in C++, and why the C++ ABI breaks easily across toolchains, with practical strategies for keeping binary interfaces stable.
Model answercppmemory-layoutalignmentabiArgue the value of putting an automated assistant in front of policyholders, tying each benefit to a mechanism and a metric, then weigh it against risks around claims and payouts.
Model answerproduct-strategychatbotinsurancemetricsDesign a service that maps long URLs to compact aliases and redirects visitors quickly, covering APIs, storage, code generation, caching, and sharding.
Model answersystem-designurl-shortenercachingshardingArchitect and implement a minimal Q&A web service with HTTP endpoints for question creation, retrieval, and search, including pagination and data validation.
Model answerapi-designsystem-designpythonrest-api