KatInterview

Topic

System Design interview problems

Scalable services, storage, caching and trade-offs. 1137 original problems, each with a worked model answer.

Problems1137

43 easy724 medium370 hard

Showing 511–540 of 1137 results

  • Design 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
  • Design a long-term document storage service: estimate storage with replicas, add ingestion-time deduplication, and layer encryption, key management, authorization and versioning.

    Model answercapacity-estimationdeduplicationencryptionobject-storage
  • Design a scalable service that ingests a massive stream of view events and serves the most popular items over a rolling 60-minute window, allowing slightly approximate results.

    Model answersystem-designstreamingtop-ksliding-window
  • Design a low-latency service that stops an ad platform from showing a user the same ad or campaign more than an allowed number of times per time window, across regions.

    Model answersystem-designdistributed-systemscountersredis
  • Design a service where users set price-level triggers on securities and get notified quickly, exactly once, through push, email or SMS, even during market-open bursts.

    Model answersystem-designevent-drivennotificationsdeduplication
  • Audit and cut a 5-second cold-cache load on a retail landing page, then design a browser table that can browse 10 million API records without freezing or crashing.

    Model answerfrontend-performanceweb-vitalsvirtualizationpagination
  • Design a duplicate-file cleanup tool that survives live, messy filesystems: handle errors, races, loops, scale and hash choices, and make deletions provably safe.

    Model answerfile-deduplicationfilesystemshashingconcurrency
  • Explain each line of a bash script that builds a Python virtual environment, predict its output and files, and argue why shell automation suits environment setup.

    Model answerbashpython-venvpipautomation
  • Design a horizontally scalable Spring Boot order backend that survives deploys and traffic spikes while guaranteeing that invoice and email jobs are never lost.

    Model answerspring-boothigh-availabilitymessage-queuetransactional-outbox
  • Describe how to parse JSON point data, decide how points connect, build the drawing service's request, and recover safely from failures without creating duplicate drawings.

    Model answerapi-integrationjson-parsingidempotencyerror-handling
  • Design a service that gathers remittance quotes from many providers, computes true customer cost against a mid-market rate, and clearly marks stale or missing data.

    Model answersystem-designcachingfault-tolerancedata-normalization
  • Design the service that ingests retailer product, price and stock data and serves store-scoped browse, search and item pages, while keeping checkout prices consistent.

    Model answersystem-designcatalogdata-ingestionsearch
  • Design a backend for a social platform where users publish brief posts, follow each other, and read a recent-posts home feed, covering feed delivery, storage, caching, and abuse controls.

    Model answersystem-designnews-feedfan-outcaching
  • Design a platform that routes skill-specific manual tasks to human operators with leases, heartbeats, fair prioritization, and safe automatic reassignment after failures.

    Model answersystem-designtask-queueleasesdistributed-systems
  • Audit a small web stack ahead of a 50x traffic spike, pick the three most dangerous weaknesses, propose fixes, and plan the work for three engineers over four weeks.

    Model answerarchitecture-reviewscalabilityavailabilitycaching
  • Design a service that turns courier delivery lifecycle events into correct, auditable payouts, covering idempotency, ordering, time zones, data repair, and reconciliation.

    Model answersystem-designidempotencyevent-drivenpayments
  • Describe how to run performance benchmarks and functional regression tests as separate tracks, and how to cut a benchmark's shared-cluster footprint while keeping results comparable.

    Model answerqabenchmarkingregression-testinghpc
  • Design a cloud blob store that accepts huge files in parts, keeps them durable across machine and site failures, and scales to petabytes with heavy concurrent traffic.

    Model answerobject-storagemultipart-uploadreplicationerasure-coding
  • Design a service that finds byte-identical files across billions of stored objects and lets clients check for existing content before uploading, while keeping network transfer low.

    Model answersystem-designdeduplicationhashingdistributed-storage
  • Design a multi-step conversational search assistant over a read-only catalog that clarifies intent, enforces hard constraints, grounds answers in records, and falls back safely.

    Model answeragentic-searchretrievalllm-agentsgrounding
  • Design a platform that lets a product authorize customer accounts at many external vendors, run actions against them, and ingest their events reliably, with new connectors cheap to add.

    Model answersystem-designintegrationswebhooksidempotency
  • Design an extensible, object-oriented library and CLI that walks directory trees, filters entries with composable predicates, and handles symlinks, errors, and huge trees.

    Model answerobject-oriented-designfilesystempredicatestraversal
  • Design a scheduling service where users in different time zones create, edit and query one-off and repeating events, with correct behavior across daylight saving changes.

    Model answersystem-designcalendartime-zonesrecurrence
  • Design a service that ingests text, scanned and table-heavy PDFs, answers questions with page-level citations, and keeps its index correct as documents are replaced or removed.

    Model answerragdocument-parsingvector-searchcitations
  • Design a worldwide ticketing service that survives on-sale stampedes, gives fast seat-map reads, and guarantees every seat is sold to at most one buyer.

    Model answersystem-designconcurrencydistributed-systemscaching
  • Plan an end-to-end training setup for a bilingual sparse-expert language model on about 1T tokens and 256 A100-80GB GPUs, including a path to 1,024 GPUs.

    Model answermixture-of-expertsdistributed-trainingexpert-parallelismllm-pretraining
  • Design an internal payment service that charges a card at most once per order despite retries, timeouts and crashes, and reconciles its records with an external payment provider.

    Model answeridempotencydistributed-systemspaymentsreconciliation
  • Design a metadata-driven service that lets quants and PMs find, trust and query licensed vendor market data, with lineage, entitlements, freshness alerts and point-in-time reads.

    Model answersystem-designdata-catalogbitemporalentitlements
  • Design a batch pipeline that screens stored audio files for policy violations, labels each as safe, unsafe or uncertain, and routes uncertain ones to human reviewers.

    Model answerml-system-designaudiopipeline-orchestrationhuman-in-the-loop
  • Design a platform that links merchants to external sources, refreshes their attributes on schedule, resolves conflicts with provenance, and serves low-latency reads even when upstreams fail.

    Model answersystem-designdata-pipelinesentity-resolutionrate-limiting

More topics