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 571–600 of 1139 results
Design a high-traffic product review service with idempotent helpful-votes, scalable counters, ranking, abuse defenses and an exact, auditable author reward flow.
Model answersystem-designidempotencydistributed-countersrankingDesign a daily batch pipeline that turns 100 TB of noisy HTML, PDF and image crawl data into a deduplicated, safe, high-rigor mathematical text corpus for LLM pretraining.
Model answerml-system-designdata-pipelineocrdeduplicationDesign the storage tier of a distributed commit log: partitions, segments, indexes, compaction, leader/follower replication, retention, and crash recovery.
Model answerdistributed-logsreplicationpartitioningcompactionDesign a distributed crawler that starts from one seed URL and spreads work over 1,000 machines, covering coordination, balancing, failure handling, and growth.
Model answerdistributed-systemsweb-crawlerconsistent-hashingfault-toleranceDesign a durable, scalable store that ingests huge volumes of appended log records, serves whole-file reads, and lets readers follow files that are still being written.
Model answersystem-designlog-storagepartitioningbatchingDesign a digital game marketplace covering category browsing, a payment-safe purchase flow, entitlement-gated downloads, and a review system, with explicit policies and retry-safe behavior.
Model answersystem-designe-commerceidempotencycdnWork through how addresses map to cache sets to show conflict misses, then separate them from false sharing and GPU shared-memory bank conflicts, with the right fix for each.
Model answercpu-cachefalse-sharinggpu-bank-conflictsmemory-hierarchyDesign a distributed service that runs one-off and repeating tasks on time at the scale of millions of jobs, survives worker crashes, and limits duplicate runs despite clock skew.
Model answerdistributed-systemsjob-schedulingleasesshardingDesign a backend that turns a live event stream into dashboard metrics, serves arbitrary time-range queries from rollups, and uses watermarks to decide when event-time windows are final.
Model answersystem-designstream-processingwatermarkstime-seriesDesign a wrist-worn pulse-tracking subsystem that stays under a 5 mW budget, updates within 2 seconds, and stays accurate during arm motion and poor sensor contact.
Model answerembedded-systemssignal-processingpower-managementwearablesDesign an internal ML platform covering experiment tracking, a model registry, online and batch serving, and monitoring, including the API and the trade-off between containers and serverless.
Model answermlopsmodel-servingmodel-registryfeature-storeExplain how Spring's container wires beans, compare constructor, setter and field injection, resolve ambiguous beans, reason about scope and thread safety, and untangle circular dependencies.
Model answerspringdependency-injectioniocjavaDesign the post-login home screen of a multi-tenant cloud dashboard, covering authentication, scoped permissions, tenant isolation, tamper-resistant audit logging, and low-latency scaling.
Model answersystem-designauthenticationauthorizationrbacDesign a merchant payment platform that routes charges across several processors, survives timeouts without double-charging, and keeps refunds, captures and authorizations consistent.
Model answersystem-designpaymentsidempotencystate-machineWrite a Python wrapper around requests.get that retries transient failures with exponential backoff, honors Retry-After on 429, fails fast on client errors, and always returns one result shape.
Model answerpythonrequestsretriesexponential-backoffDesign a pipeline that ingests millions of ad click events per second and serves near-real-time, windowed counts per ad to advertisers, with deduplication and late-data handling.
Model answersystem-designstreamingkafkaflinkDesign how a single-node LRU cache saves its entries and recency order so it restarts warm after a crash, balancing write-path latency, durability, and bounded recovery time.
Model answerlru-cachewrite-ahead-logsnapshotscrash-recoveryExtend a per-expense policy engine so it also enforces trip-wide spending caps, and redesign its output to report both line-item and trip-level violations with clear explanations.
Model answersystem-designrules-engineaggregationapi-designDesign a live comment feature where new posts show up instantly on the author's screen, then reconcile safely with server acknowledgments, broadcast events, retries, and durable storage.
Model answersystem-designoptimistic-uiidempotencyreal-timeExplain how containers work, tighten a naive Dockerfile for an ML inference API, and outline a CI/CD pipeline that safely ships code and model changes.
Model answerdockerci-cdmlopscontainersDescribe how shader source becomes GPU machine code, contrast explicit and legacy graphics APIs, and sketch a small shader compiler with front end, IR, and SPIR-V back end.
Model answershader-compilergraphics-apispir-vvulkanDesign and build a small full-stack ledger app with an API, storage, a basic UI and tests that records credits and debits and never lets an account balance drop below zero.
Model answerapi-designtransactionsidempotencyconcurrencyDesign a backend for team task lists where members add, assign, schedule, reorder and complete items, with changes appearing live across web and mobile and surviving offline use.
Model answersystem-designreal-time-syncconcurrencycrdtDesign a distributed block-based file store for huge structured datasets, covering versioned metadata, caching, replica repair, locality-aware job scheduling, and resource-aware balancing.
Model answerdistributed-storagereplicationmetadatacachingPlan the move of a regulated payroll function from an old on-prem system to a new platform, covering rollout strategy, data checks, parallel runs, cutover, rollback and communication.
Model answerdata-migrationpayrollrisk-managementcutover-planningDesign a service that adds expiring credits and spends them earliest-expiry-first, where expiry and spend times are vector clocks that are only partially ordered.
Model answervector-clocksidempotencyconcurrency-controlordered-setDesign a messaging backend where an acknowledged message is never lost, each conversation has a deterministic order, and reconnecting clients catch up without gaps or duplicates.
Model answermessagingdurabilityorderingfan-outTrace a Linux command from shell parsing to exit status, explain path lookup, permissions, file descriptors and /proc, then compare containers and VMs by isolation boundary.
Model answerlinuxoperating-systemsprocessesfilesystemsExplain what a collective barrier does in PyTorch distributed training, how it is implemented per backend, when to use it, and how misuse causes hangs or wasted throughput.
Model answerpytorchdistributed-trainingsynchronizationncclDesign a Kafka consumer pipeline that batches trade events, preserves per-key order, survives crashes and slow databases, and never double-writes aggregates.
Model answerkafkastream-processingexactly-oncebackpressure