Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1133 original problems, each with a worked model answer.
43 easy720 medium370 hard
Showing 841–870 of 1133 results
Architect a social media platform where users upload media, follow others, and get a ranked home feed — covering storage, delivery, feed generation, and scaling trade-offs.
Model answerfeed-generationcdnmedia-pipelineshardingDesign an API to find every line containing a word or exact phrase in a large line-oriented text file, comparing a streaming scan against a persistent inverted index.
Model answerinverted-indextext-searchstreamingtokenizationArchitect a durable, compliant loan origination system covering product selection, application intake, automated underwriting, third-party data pulls, decisioning, and disbursement.
Model answersystem-designfintechworkflow-orchestrationdistributed-systemsExplain setup/hold timing constraints, clock skew effects, violation fixes, and hardware testability methods in digital chip design.
Model answerhardwaretiming-analysistestingdigital-designDesign a distributed scheduler that durably stores millions of delayed tasks and dispatches them within seconds of their due time, surviving crashes and partitions.
Model answerdistributed-systemsschedulingfault-tolerancedatabasesDesign a fault-tolerant background task scheduler supporting one-time and recurring jobs with at-least-once guarantees at scale.
Model answerdistributed-systemsschedulingfault-toleranceDesign a hotel search and reservation system that serves low-latency search from caches while guaranteeing strict, oversell-free transactional booking across multi-night stays.
Model answersystem-designconsistencyidempotencycqrsDesign a seat reservation system for sold-out events that handles millions of concurrent users without overselling, covering holds, payments, and real-time availability.
Model answerdistributed-systemsconcurrencypaymentscachingArchitect a distributed throttle service for an LLM API that enforces per-org request and token limits with sub-5ms latency at 200k RPS.
Model answerrate-limitingredisdistributed-systemshigh-throughputArchitect an async ingestion system that handles billion-scale bulk feed files and real-time single-item edits, prioritizing price/stock updates over heavy image processing.
Model answerdistributed-systemsmessage-queuesdata-pipelinesBuild a Spring Boot controller for a banking resource with proper HTTP semantics, request validation, error handling, and tests.
Model answerspring-bootrest-apivalidationerror-handlingDiagnose a deadlock in code that moves items between locked containers and implement fixes using lock ordering or try-lock strategies.
Model answerconcurrencydeadlocklockingmultithreadingDesign a fault-tolerant pipeline that ingests 50k heterogeneous JSON events per second and serves both per-user lookups and 90-day aggregate analytics.
Model answerdata-pipelineskafkaanalyticsschema-evolutionDesign a multi-tier caching system for a high-traffic rental marketplace that serves fast search results while guaranteeing zero double-bookings through authoritative holds.
Model answercachingdistributed-systemsconsistencyinventory-managementIdentify the one correct statement about TCP connection-establishment state transitions and explain why the other three are wrong.
Model answernetworkingTCPstate-machineDesign a REST API and backing storage model to persist a node hierarchy and efficiently retrieve all descendants of any node.
Model answerREST APIdatabase schematreespaginationDesign a distributed service that registers one-time and cron-based tasks, dispatches them when due, and supports pausing and resuming schedules reliably.
Model answerschedulingdistributed-systemscronfault-toleranceDesign a distributed system that processes purchase event streams in real time and continuously exposes the most popular products across multiple time horizons.
Model answerstreamingdistributed-systemsanalyticsscalabilityArchitect a file-hosting platform separating content from metadata, supporting granular access rules and resumable multi-part uploads.
Model answerstoragedistributed-systemsapi-designuploadDesign a small iOS stopwatch/SwiftUI app with a clear state machine, clock-derived elapsed time, main-thread updates, and sensible lifecycle handling.
Model answeriosswiftuistate-managementconcurrencyTrace a single HTTPS profile update through TLS negotiation, a Redis cache-aside layer, and InnoDB's WAL-based durability guarantees.
Model answermysqlredistlsinnodbDesign and implement a pipeline that merges messy person records from several sources into canonical entries, handling normalization, matching, conflict resolution, and validation.
Model answerentity-resolutiondata-qualityrecord-linkagepipeline-designDesign a thread-safe writer that lets thousands of threads durably append sub-1KB opaque records to one local file, with crash-safe framing and safe error handling.
Model answerconcurrencydurabilityfile-iobatchingDesign a shared identity layer that lets users sign in once and move freely between two separate domains, then scale the same pattern to many sites and delegated API access.
Model answerauthenticationoauthoidcssoBuild a two-player, grid-size-configurable Tic-Tac-Toe React component with efficient win detection, prop reactivity, and full keyboard/screen-reader accessibility.
Model answerreacttypescriptaccessibilitystate-managementDesign the scheduling logic for one elevator serving a basement plus three floors, covering objectives, state, dispatch strategy, data structures, and simulation.
Model answerelevatorschedulingstate-machinesimulationDesign an API for a shared payment account that keeps the balance consistent when multiple users submit payments simultaneously, at high throughput.
Model answerconcurrencypaymentsdistributed-systemsidempotencyImplement a payout processor that guarantees exactly-once delivery against an unreliable ledger by persisting state and resolving ambiguous responses before retrying.
Model answeridempotencyfault-tolerancedistributed-systemsstate-machinesDesign a fast, memory-efficient rate limiter for an API that tracks per-client quotas using a token-bucket algorithm with lazy refill.
Model answerrate-limitingscalabilityalgorithmsconcurrencyDesign a shared-ownership pointer class: explain the control block, copy/move semantics, destruction invariants, and the boundaries of reference counting.
Model answerc++memory-managementsmart-pointersownership