System design
329 practice items · needed by 21 roles
Easy 60Medium 108Hard 161
Coding problems
Practice questions
- Organising a growing React codebasehard
- Duplicate emails despite a checkeasy
- Updating a counter in MongoDBeasy
- Counting API calls in Rediseasy
- What a load balancer doeseasy
- Serving images to far-away userseasy
- The cache-aside patterneasy
- Scaling a read-heavy databaseeasy
- Latency versus throughputeasy
- Estimating requests per secondeasy
- How much downtime 99.99% allowseasy
- Why keep app servers statelesseasy
- How a token bucket limits rateeasy
- What an API gateway handleseasy
- Large file uploadseasy
- Spotting a single point of failureeasy
- DNS failover is sloweasy
- Cost of adding indexeseasy
- Pushing live order statuseasy
- Batch or stream processingeasy
- A live game leaderboardeasy
- Two awaits that could run togethermedium
- Optimistic lock update hits 0 rowsmedium
- Retrying after a shared outagemedium
- What a circuit breaker doesmedium
- Async callback inside forEachmedium
- Page view counter loses countsmedium
- Insert or update in one statementmedium
- Two accounts with one emailmedium
- Updating or deleting the cache on writemedium
- Different prices on different serversmedium
- Fast top suggestions per prefixmedium
- Core of a URL shortenermedium
- Iteration order of a Go mapmedium
- In-memory Map cache across many serversmedium
- Retrying a 409 Conflictmedium
- Write-through caching trade-offmedium
- Average latency with a cachemedium
- Stale data from a read replicamedium
- Paging through a huge feedmedium
- Estimating storage for uploadsmedium
- How many short URLs fitmedium
- IDs across many serversmedium
- Quorum reads and writesmedium
- Load balancing slow requestsmedium
- Routing by URL pathmedium
- Building a home feedmedium
- What a Bloom filter answersmedium
- Search with LIKE is slowmedium
- A like counter on a viral postmedium
- Where eventual consistency is finemedium
- Availability of a call chainmedium
- What to autoscale workers onmedium
- Why look at p99 latencymedium
- Microservices for a team of fourmedium
- Finding nearby driversmedium
- IP rate limits block real usersmedium
- Synchronous or async replicationmedium
- Separate models for reads and writesmedium
- Safe retries for paymentshard
- CAP during a network partitionhard
- Lost update on a wallet balancehard
- Cache stampede on a hot keyhard
- Saving to DB and publishing an eventhard
- One slow route freezes Node.jshard
- Connection pools and autoscalinghard
- Why a lock alone is not enoughhard
- Workers block each other on a jobs tablehard
- Deadlocks between two transfershard
- Two doctors go off call at oncehard
- Account events processed out of orderhard
- Retries stacked at every layerhard
- Profile shows old data after savinghard
- Adding a fifth cache nodehard
- Sharding orders by creation datehard
- Stale value returns after cache deletehard
- Work continues after the client gives uphard
- Burst at a fixed window boundaryhard
- return versus return await in tryhard
- Pool exhausted during paymentshard
- Concurrent requests from throughputhard
- Users uploading 2 GB videoshard
- Sorting a file larger than memoryhard
- Rate limiting with a time windowhard
- One company sees another's invoiceshard
- Keeping OAuth tokens out of the browserhard
- A reset link used twice at oncehard
- Both doctors go off callhard
- One counter row slows every salehard
- Two admins edit the same producthard
- Two workers both think they hold the lockhard
- CROSSSLOT errors after moving to Clusterhard
- One Redis key gets half of all traffichard
- Keeping wallet balances only in Redishard
- All inserts land on one shardhard
- Sharding by tenant with one giant tenanthard
- Search shows deleted productshard
- A join across two services' databaseshard
- Fast routes on a country-sized maphard
- How a spreadsheet recalculates cellshard
- Designing an O(1) LRU cachehard
- Adding a cache server without reshufflinghard
- What a Bloom filter can promisehard
- Sharing a HashMap across threadshard
- Counting unique visitors at huge scalehard
- Same request, two cache entrieshard
- Stopping double charges on retrieshard
- One key overloading a cache shardhard
- Deduplicating more data than fits in memoryhard
- Why consistent hashing uses virtual nodeshard
- Error direction of a Count-Min Sketchhard
- Race in check-then-puthard
- Concurrent writes to a Go maphard
- One tenant floods the queuehard
- One hot RabbitMQ queuehard
- Consumer cannot find new datahard
- A fixed concurrency limithard
- When the control plane is downhard
- A payment call timed outhard
- Fan-out for a celebrity accounthard
- The weakness of two-phase commithard
- Last-write-wins loses an updatehard
- Offline edits that must mergehard
- How many nodes can failhard
- Trade-offs without a partitionhard
- Linearizable is not serializablehard
- Requests for keys that do not existhard
- Risk of a write-back cachehard
- Random UUIDs as primary keyshard
- Memory for a million socketshard
- Holding seats during checkouthard
- Designing a wallet ledgerhard
- Limiting the blast radiushard
- Writes in two regions at oncehard
- Throttling on one partition keyhard
- Rebuilding state from many eventshard
- Search shows results for old inputmedium
- Two buyers, one item lefthard
- Chat across many servershard
- Saving data and publishing an eventhard
- Saved profile shows old datahard
- Write skew under snapshot isolationhard
- Two agents edit one tickethard
- Choosing an API contract approachhard
- Payment call inside a transactionhard
- Network calls on the main threadeasy
- Getting a repository into a ViewModeleasy
- Room as the source of trutheasy
- State down, events upeasy
- Picking a framework for a React teameasy
- Marking UI code with @MainActoreasy
- Fetching data with async/awaiteasy
- Surviving screen rotationmedium
- Offline-first data flowmedium
- Blocking file read in a coroutinemedium
- setState called after disposemedium
- Modelling loading and errormedium
- Thread safety of by lazymedium
- Snackbar shows again after rotationmedium
- Passing an order to the detail screenmedium
- Do you need use casesmedium
- Keeping a search query after process deathmedium
- What Kotlin Multiplatform sharesmedium
- Adding Flutter to an existing appmedium
- React Native in a native appmedium
- Two async let callsmedium
- Downloading a list of imagesmedium
- Calling into an actormedium
- Cancelling a long loopmedium
- Reading a file line by linemedium
- Jank when parsing a big JSONhard
- Dart microtask and event orderhard
- Parallel token refresh logs users outhard
- Locking around a suspend callhard
- Passing a class into a Taskhard
- Global cache in Swift 6hard
- Using nonisolated in an actorhard
- Turning a delegate into an AsyncSequencehard
- Bridging a callback with a continuationhard
- Blocking inside an async functionhard
- sync on the main queuehard
- Importing 50,000 rows in SwiftDatahard
- Search that restarts on new texthard
- Godot signalseasy
- Messy player codemedium
- Old save files break after a patchmedium
- Drawbacks of deferred renderinghard
- Bandwidth grows with player counthard
- Job safety system errorhard
- Using transform in Task.Runhard
- How proof of stake secures the chaineasy
- How often Ethereum makes a blockeasy
- Why Ethereum moved to proof of stakeeasy
- What a 51% attack allowseasy
- Rollup withdrawal timeshard
- Paying everyone in a loophard
- Who actually builds Ethereum blockshard
- One liquid staking protocol gets too bighard
- Heavy work in an interrupteasy
- printf in an interrupteasy
- Priority inversionmedium
- Counter shared with an ISRmedium
- Atomic GPIO writesmedium
- A volatile counter loses countsmedium
- Reading a 64-bit tick on a 32-bit MCUmedium
- A formatter used by main and an ISRmedium
- Counter read gives odd valuesmedium
- Lost GPIO pin changesmedium
- High-priority task starvesmedium
- Two tasks stop forevermedium
- Bug disappears when you lookmedium
- Gatekeeper task for a shared UARTmedium
- Lock-free ring buffer from ISR to taskmedium
- Using timeouts on every blockmedium
- A lock-free ISR ring bufferhard
- Garbled log text from two taskshard
- Timestamp jumps backwardshard
- Lost GPIO updates from an ISRhard
- Atomics on a Cortex-M0hard
- Flag cleared as the last ISR linehard
- Recovering from a lock order bughard
- Active object design in an RTOShard
- What namespaces isolateeasy
- What the scheduler doeseasy
- What the kubelet doeseasy
- Where cluster state liveseasy
- One huge Terraform statehard
- Outage that will not endhard
- Horizontal vs vertical scalingeasy
- Users logged out when scaling ineasy
- Auto Scaling group capacityeasy
- What elasticity meanseasy
- Instance up, app down, never replacedmedium
- How much Lambda concurrency you needmedium
- One event, three consumersmedium
- Lambda spike breaks the databasehard
- FIFO queue backlog with idle workershard
- Scale-in stops jobs half-wayhard
- Should a small team go multi-cloud?hard
- Scaling stopped at a hidden limithard
- Losing one of two zoneshard
- New instances take 12 minutes to servehard
- Uploads vanish after scalinghard
- A report that takes 2 minuteshard
- Rightsized and now crashinghard
- Why add jitter to retries?medium
- Circuit breaker half-open statemedium
- Timeouts in Go clientsmedium
- Tail latency with fan-outhard
- Outage that outlives its triggerhard
- A hot cache key expireshard
- Wasted work after timeoutshard
- Go service OOMKilled under loadhard
- Two leaders after a GC pausehard
- Failures a 3-node quorum surviveseasy
- Adding replicas to fix slow writeseasy
- ACID vs eventual consistencyeasy
- Insert or update in one statementeasy
- Four or five members for etcdmedium
- Placing the tie-breakermedium
- Users see old data after savingmedium
- InnoDB Cluster losing two of threemedium
- Choosing during a network partitionmedium
- Primary on the minority side of a partitionmedium
- Last-writer-wins drops a newer updatemedium
- Limiting the blast radiusmedium
- Flash sale stock without oversellingmedium
- Check-then-insert creates duplicatesmedium
- Cache shows a rolled-back pricemedium
- Choosing a shard keyhard
- etcd split across two regionshard
- Throughput of one hot counter rowhard
- Poller misses some rowshard
- Queue length at a hot rowhard
- Scaling a feature with big outlierseasy
- Why skip connections helpmedium
- Kernel SVM on ten million rowshard
- Scaling a stateless model APIeasy
- Requests that take five minuteseasy
- Model inside the web app processeasy
- Pre-processing on the client is slowmedium
- Separate prefill and decode GPUshard
- Slow first token for Dubai usershard
- Kappa architecture in one lineeasy
- A simple background job queueeasy
- Eight consumers, six partitionsmedium
- Two clerks edit the same recordmedium
- Threads with nothing to domedium
- Flink source parallelism of 16medium
- Two writers, one lakehouse tablehard
- Invoices pointing at another tenanthard
- Backfill and daily load collidehard
- Stopping a lost updatemedium
- One coupon used twicehard
- One page, ten backend callshard
- Testing with a payment gatewayhard
- More users, less throughputhard
- Fast 202 responses, slow ordershard
- Scaling efficiency from 2 to 4 servershard
- Testing a circuit breakerhard
- Two people book the last seathard
- Asserting on eventual consistencyhard
- Mixing illustration stylesmedium
- Every component has its own radiusmedium
- Consistency across pageseasy
- A logo inside a badgeeasy
- A logo in a browser tabeasy
- Turning the logo into an app iconmedium
- Using one term for one thingeasy
- "Sign in" vs "Sign up"easy
- Keeping a style sheetmedium
- Punctuating bullet listsmedium
- Button labels across a checkout flowmedium
- Auditing all the strings in an appmedium
- 'Sign in' vs 'log in' across an apphard
- When the error is your faulthard
- Telling a user their card was declinedhard
- Confirming who gets the moneyhard
- Why multithread a dealeasy
- Your champion leaves the companyhard
- A stakeholder who blocks youhard
- Six contacts at one accounthard
- Paying interest with ITCeasy
- Paying reverse charge taxeasy
- Cash paid under the wrong headmedium
- Paying tax under QRMPmedium
- Paying short-paid tax on your ownmedium
- Must a big taxpayer pay some tax in cash?hard