KatInterview

Topic

System Design interview problems

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

Problems1132

43 easy720 medium369 hard

Showing 121–150 of 1132 results

  • Architect a 1-on-1 instant messaging backend relying exclusively on standard HTTP request-response APIs, managing message synchronization, ordering, idempotency, and push delivery at scale.

    Model answersystem-designmessagingdistributed-systemshttp-polling
  • Describe how Kafka's partitioned, replicated log and consumer groups shape ordering, scale, and resilience, and how to get effectively-once results from a pipeline.

    Model answerkafkamessagingdelivery-semanticsreplication
  • Design a horizontally scalable direct-messaging backend with live delivery, stored history, presence, per-conversation ordering and fault tolerance for 10 million daily users.

    Model answersystem-designwebsocketmessagingcassandra
  • Explain what a deadlock is, the conditions that make one possible, realistic scenarios, and the engineering techniques used to prevent, avoid, detect and recover from them.

    Model answerconcurrencydeadlocklockingoperating-systems
  • Instrument an HTTP client to count and attribute its calls, detect wasteful repeats, reduce them safely, and prove the change is correct and stays fixed.

    Model answerobservabilityhttpcachingbatching
  • Walk through how the JVM places objects in memory, decides which are dead, reclaims them with different collectors, and why leaks and resource problems still occur.

    Model answerjavajvmgarbage-collectionmemory-management
  • Design a Spark Structured Streaming job that removes retry-induced duplicate click events at 10M/s with a 24-hour window, handling late data, hot keys, idempotent writes, and backfills.

    Model answersparkstructured-streamingdeduplicationdata-skew
  • Design a distributed algorithm and protocol to count all nodes in an N-ary tree using asynchronous message passing, local state, and deduplication.

    Model answerdistributed-systemsconcurrencytrees-graphssystem-design
  • Design a multi-GPU inference platform for a 70B model that streams tokens with low first-token latency, keeps GPUs busy, manages KV cache memory, and survives traffic spikes.

    Model answerllm-servingcontinuous-batchingkv-cachepaged-attention
  • Design a live bidding service that handles bursts of bids on popular items, keeps a strict per-item order, never loses accepted bids, and streams the leading bid to viewers.

    Model answersystem-designreal-timeconcurrencyidempotency
  • Explain how you would automate bare-metal and Kubernetes delivery, run edge firmware rollouts, reason about IP routing, and describe a homelab that backs up your claims.

    Model answerinfrastructure-as-codekubernetesgitopsfleet-management
  • Design a service that fires recurring tasks on time-zone-aware schedules, survives crashes, handles missed runs, and avoids duplicate logical runs.

    Model answersystem-designschedulerdistributed-systemsidempotency
  • Design a platform that pulls in millions of articles daily, removes syndicated copies, groups coverage into evolving stories, and serves fast ranked feeds to tens of millions of users.

    Model answersystem-designdeduplicationclusteringfeed-ranking
  • Architect a platform where tens of thousands of contestants submit code during timed contests, with sandboxed grading, fast verdicts and a continuously updated ranking.

    Model answersystem-designsandboxingmessage-queueleaderboard
  • Design a platform that takes up to a million fire-and-forget events per second and pushes each one to the webhooks of tenants whose filter rules match, with retries, isolation and security.

    Model answersystem-designwebhooksevent-streamingmulti-tenancy
  • Design a per-node client that pulls huge versioned file bundles over ranged HTTP, resumes after failures using verified chunks, and exposes only fully validated bundles.

    Model answersystem-designresumable-downloadshttp-rangeatomic-publish
  • Design a ticketing backend where thousands of buyers compete for the same seats, with temporary holds, safe checkout, and a firm guarantee that no seat is sold twice.

    Model answersystem-designconcurrencybookingdistributed-systems
  • Explain how sync/async differs from blocking/non-blocking, when Go channels or mutexes fit best, and how relational and NoSQL stores compare for backend workloads.

    Model answerconcurrencygolangasync-iosql-vs-nosql
  • Design a storage and ingestion system for shopper activity events that serves a known set of reports, such as regional unique viewers and top orders, with low latency.

    Model answersystem-designanalyticsolapevent-modeling
  • Decide whether a reply to ping proves a server's HTTPS port is usable, and explain how to test the port and narrow down where a failure occurs.

    Model answernetworkingtcpicmpfirewall
  • Design the backend for an on-demand car service: live driver positions, sub-second nearest-driver matching, a reliable trip lifecycle, and no double bookings at city scale.

    Model answersystem-designgeospatial-indexingreal-timeconsistency
  • Design a scalable backend architecture for a card issuer handling real-time payment processing, fraud detection, ledger management, credit limits, and credit bureau batch exports.

    Model answersystem-designfintechevent-drivendistributed-systems
  • Write a C++ file-copy tool using POSIX calls, then explain page cache, write-back and kernel-assisted copy, and harden it with RAII, atomic replacement and directory support.

    Model answeroperating-systemscppsystem-callsraii
  • Design a resilient HTTP API for event ingestion and worker earnings computation, featuring idempotency keys, deterministic windowing, batch partial success, and retries.

    Model answerapi-designidempotencyfault-tolerancedistributed-systems
  • Decide how to combine HDFS, Spark, Hive and SQL Server into a pipeline for 500 TB of logs, analyst SQL, fast executive dashboards and strict governance, and justify what to leave out.

    Model answerdata-warehousehadoopsparkhive
  • Defend a small Spring Boot 3 / Java 21 REST service: explain startup, auto-configuration, proxies, modern Java features, and design and concurrency trade-offs.

    Model answerspring-bootjava-21virtual-threadsdependency-injection
  • Explain how alignment and padding determine object size and layout in C++, and why the C++ ABI breaks easily across toolchains, with practical strategies for keeping binary interfaces stable.

    Model answercppmemory-layoutalignmentabi
  • Argue the value of putting an automated assistant in front of policyholders, tying each benefit to a mechanism and a metric, then weigh it against risks around claims and payouts.

    Model answerproduct-strategychatbotinsurancemetrics
  • Design a service that maps long URLs to compact aliases and redirects visitors quickly, covering APIs, storage, code generation, caching, and sharding.

    Model answersystem-designurl-shortenercachingsharding
  • Architect and implement a minimal Q&A web service with HTTP endpoints for question creation, retrieval, and search, including pagination and data validation.

    Model answerapi-designsystem-designpythonrest-api

More topics