Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1139 original problems, each with a worked model answer.
44 easy725 medium370 hard
Showing 601–630 of 1139 results
Design an HTTP gateway through which third-party partners submit property listings, which are checked by an internal validation team's service, with safe retries, async results and observability.
Model answerrest-apiidempotencyasync-processingoutbox-patternFix lost security context in async tasks, duplicate ledger writes after Kafka redelivery, and unsafe shared metrics maps in a Java 17 / Spring Boot payment consumer.
Model answerjavaspring-securitykafkaidempotencyWalk through how a GPU turns triangles into pixels, how pipelines resolve register read-after-write hazards, and which workloads GPUs handle well or badly.
Model answergpu-architecturegraphics-pipelinepipeline-hazardslatency-hidingDesign a browser-based 3D replay viewer that streams time-indexed vehicle logs from object storage, with prefetching, fast seeking, and aligned playback.
Model answerstreamingcachingtime-seriesprefetchingArchitect a platform that renders risky web pages in throwaway cloud sandboxes and streams the result to employees, covering isolation, streaming, state, policy and scale for 50k sessions.
Model answersystem-designremote-browser-isolationwebrtcsandboxingDiagnose a Requests POST with a file-like body that stalls after a 307 redirect, fix the body-rewind logic, and write a deterministic regression test.
Model answerpythonhttpdebuggingredirectsDesign a client-side package manager that resolves versioned dependencies, rejects cycles and conflicts, and applies installs transactionally with recovery after failure.
Model answersystem-designdependency-resolutiongraphstransactionsDesign a platform where teams write, tag, version, search and rank interview questions, and where interviewers pick from a shortlist during a live session without leaking or repeating questions.
Model answersystem-designsearchrankingversioningDesign a DAG-based intermediate representation for GPU test pipelines and explain how to compile it into a cached, incremental, deterministic plan that survives schema changes.
Model answerdagintermediate-representationcachingincremental-buildsDesign a centralized Spring exception handling layer that returns one JSON error contract, maps domain errors to HTTP codes, hides internals, and ties each response to server logs via a trace ID.
Model answerjavaspringexception-handlingrest-apiSketch a high-level payment backend that charges customers via a third-party provider, guaranteeing no double charges and no orders marked paid without collected funds.
Model answerpaymentsidempotencystate-machineledgerDesign a server that orders and merges simultaneous keystrokes from many editors on one document, converges all replicas, and survives failures.
Model answercollaborative-editingoperational-transformationreal-timeconsistencyDesign a chat backend for many isolated organizations, covering ordered channel history, offline catch-up, permission-aware search, presence, and read tracking.
Model answermulti-tenancymessagingreal-timepermissionsExplain when to reach for a for loop versus a while loop, covering intent, safety, and how each choice affects the risk of infinite loops.
Model answercontrol-flowloopsreadabilitypythonWalk through the steps to identify and verify the cause of elevated CPU consumption on a Linux machine, from system-wide metrics to specific code paths.
Model answerlinuxperformancedebuggingmonitoringDesign a thread-safe in-process logger that fans out immutable log records to independent handlers with isolated failures, runtime reconfiguration, and bounded async buffering.
Model answerconcurrencyloggingsystem-designpythonDesign a browser client that streams model output into a virtualized, richly formatted chat log while surviving dropped connections and branching edits.
Model answerfrontendstreamingvirtualizationstate-managementDebug failing REST handlers that add and remove movies in a watch list, fixing check ordering, ID comparison, persistence timing, and status codes.
Model answerdebuggingrest-apihttp-status-codesasync-persistenceWalk through a repeatable framework for producing high-signal PR feedback — prioritized, clearly labeled, and written with minimal context — in roughly 20–30 minutes.
Model answercode reviewengineering fundamentalscommunicationsoftware designDesign a Kubernetes-native system that schedules containerized DAG tasks with dependency ordering, retries, durable state, and multi-tenant isolation.
Model answerkubernetesworkflow-orchestrationdag-schedulingreliabilityArchitect a system that ranks articles by engagement velocity with 1–2 minute freshness, covering ingestion, streaming aggregation, storage tiers, and cheap high-QPS serving.
Model answerstreamingrankingcachingkafkaDesign a sharded, in-memory service that decides in under 10 ms whether a viewer has hit ad/campaign caps, with async impression counting and deliberate soft-cap tolerance.
Model answersystem-designrate-limitingdistributed-systemscachingDesign a maintainable framework that routes market events to trading strategies, manages order lifecycle, and runs identically in backtests and live trading.
Model answerevent-driventradingframework-designextensibilityDesign a calendar system for millions of users covering event storage, recurring rule expansion, time zone correctness, and a responsive frontend with optimistic updates.
Model answerdistributed-systemsdata-modelingfrontend-architecturetime-zonesDesign and implement a reservation widget: date/guest inputs, dynamic price breakdown, validation, disabled booking on invalid or sold-out stays, and a confirm dialog.
Model answerfrontendstate-managementpricingvalidationDesign a distributed rate limiter that enforces per-user request quotas across multiple regions with low latency and no single point of failure.
Model answerrate-limitingredisdistributed-systemstoken-bucketDesign an end-to-end metrics collection and alerting system for tens of thousands of hosts, then go deep on cardinality control, storage layout, or alert evaluation.
Model answermonitoringtime-seriescardinalitydistributed-systemsDesign a distributed scheduling service that assigns variable-length rendering jobs to a heterogeneous GPU cluster while balancing priority tiers, resource fit, and fault tolerance.
Model answerschedulingdistributed-systemsgpuresource-managementDesign a multiplayer live quiz system where players race to buzz in, wrong answers trigger a timed lockout, and fairness holds across varying network conditions.
Model answerreal-timewebsocketsmatchmakinglatencyDesign an online shopping system handling product discovery, shopping carts, order placement, inventory management, and payment processing with consistency guarantees.
Model answere-commercedistributed-systemstransactionsidempotency