Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1136 original problems, each with a worked model answer.
43 easy723 medium370 hard
Showing 481–510 of 1136 results
Build a per-photo Pillow pipeline that applies a fixed series of edits, then cut wall-clock time with parallelism and justify processes vs threads and the worker count.
Model answerpythonpillowmultiprocessinggilBuild a task dispatcher that serves the earliest-deadline runnable task, handles prerequisites, and grows into a fault-tolerant multi-worker service.
Model answerschedulerpriority-queuetopological-sortdistributed-systemsDesign the backend that detects and handles scheduling collisions when users create or edit events, covering recurrence, attendees, privacy, time zones, and concurrent edits at massive scale.
Model answersystem-designcalendarconflict-detectionrecurrenceDesign a globally consistent service that tracks one storage allowance per user across several products, guaranteeing usage never exceeds the limit while staying fast and available.
Model answersystem-designdistributed-systemsconsistencyidempotencyDesign a cluster-based file storage system from a vague prompt, defining workload, guarantees and scale first, then covering metadata, data placement, I/O paths and failure handling.
Model answerdistributed-systemsstoragereplicationmetadataDesign a backend that picks one ad per page slot within a strict latency limit, logs views and clicks for billing, and keeps campaign spend within budget and spread across the day.
Model answersystem-designad-servinglow-latencybudget-pacingDesign a resilient, horizontally scalable HTTP/HTTPS traffic distribution tier that routes by path or header, tracks backend health, and survives node and control-plane failures without dropping connections.
Model answerload-balancinghigh-availabilitylayer-7health-checksDesign a multi-document chat backend where each session accepts up to 200 files, covering async indexing, latency budgets, safe caching, and rate-limit-aware admission control.
Model answerragsystem-designasync-ingestionlatency-budgetDesign a platform that serves fresh features to a ranking model in milliseconds and also builds leak-free historical training sets, keeping the two paths consistent.
Model answerfeature-storeml-system-designstreamingpoint-in-time-joinDesign an HTTP service that accepts long-running jobs, returns immediately, deduplicates client retries, and survives worker crashes without repeating side effects.
Model answeridempotencymessage-queuesdistributed-systemsoutbox-patternDesign a dashboard for a delivery-station lead covering metric definitions, chart choices, layout, interactions, alerting, validation, and scalable aggregation that keeps tail behavior visible.
Model answerdashboard-designmetricsvisualizationalertingDesign a multithreaded CPU routine for valid 1D correlation that adapts to tiny, huge, and thread-capped cases, covering partitioning, false sharing, SIMD, and merging.
Model answermultithreadingparallel-reductionfalse-sharingsimdExplain how Java's concurrent hash map stays safe under contention, how to shard a session cache without mass reshuffling, and when batch map-reduce beats SQL joins.
Model answerconcurrencyconsistent-hashingjavadistributed-systemsDesign an asynchronous service where workers recursively split a directory scan into child tasks, with safe retries, deduplication, progress reporting and scaling to billions of files.
Model answersystem-designdistributed-systemsmessage-queueidempotencyDesign the storage layer for a metrics platform that ingests 100k points per second, serves tag-filtered time-range queries, downsamples older data and enforces tiered retention.
Model answertime-seriesstoragepartitioningdownsamplingDesign a secure, resumable pipeline that delivers 0.5–50 GB model bundles from a central registry to over 10,000 edge nodes, with staged rollouts, rollback, and fleet-wide monitoring.
Model answerdistributed-systemscontent-addressable-storagerolloutsedge-deploymentBuild a processor for a stream of subscriptions and log events that assigns IDs, acknowledges each subscription, tags matching events, and scales to heavy traffic with deletions.
Model answerinverted-indexstream-processingscalingdeletionDesign a warehouse for a retail platform's clickstream and orders that serves two fixed queries: monthly unique Asian viewers of an item, and the current top three orders by value.
Model answerdata-warehouseevent-schemaidentity-stitchingdimensional-modelingWalk a C++ file through preprocessing, compilation, assembly and linking, then explain object files, linker errors and the process address space at launch.
Model answerc++compilationlinkingelfDesign a throttling layer that caps per-key request rates with burst tolerance, first on one machine, then across many app servers, covering consistency, clock drift, failures, and observability.
Model answerrate-limitingtoken-bucketsliding-windowredisDesign a service that gives engineers on-demand remote workstations they reach from a laptop, keep across stops and restarts, and have reclaimed automatically when idle.
Model answersystem-designcontrol-planeprovisioningpersistent-storageReview a flawed Python task dispatcher for races, deadlocks and limiter bugs, then write tests, derive makespan and success-rate formulas, and design telemetry.
Model answerconcurrencydebuggingrate-limitingrace-conditionsDesign a billing service that sells API credits through an external payment provider, crediting each successful payment exactly once despite retries, timeouts, and partial failures.
Model answeridempotencydouble-entry-ledgerwebhooksreconciliationDesign a marketplace order-event pipeline that serves five-minute operational metrics and a reproducible next-morning finance table, weighing batch, streaming, and hybrid approaches.
Model answerdata-pipelinestream-processingbatch-processinglambda-architectureDesign a workplace chat backend covering DMs and channels, with sub-second delivery, durable acknowledged messages, per-conversation ordering, and consistent history across devices.
Model answersystem-designwebsocketsmessagingfan-outDesign a card-present payment flow for a multi-location café chain: hold at swipe, tip added later, and a scalable nightly capture per location with safe retries and reconciliation.
Model answerpaymentsidempotencybatch-processingreconciliationExplain how you pick operational toil to automate, how you make automation safe in production, and how you judge when it is good enough, excellent, or not worth building.
Model answersreautomationtoilreliabilityDesign a scalable service that takes logs from many services and splits them across storage backends by live-adjustable percentages, surviving backend outages without losing data.
Model answersystem-designkafkaload-balancingbackpressureExplain how a secure web session is negotiated, how clients decide to trust a server, and why captured packets resist decryption while a trusted proxy can still read them.
Model answertlshttpsnetworkingcryptographyDesign a text messaging service where conversations are stored durably, messages arrive live, and clients recover cleanly from disconnects, retries, and duplicate events.
Model answersystem-designchatwebsocketsidempotency