KatInterview

Topic

System Design interview problems

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

Problems1133

43 easy720 medium370 hard

Showing 901–930 of 1133 results

  • Build a high-scale microblogging system supporting post creation, social connections, and personalized feeds with near real-time delivery.

    Model answerdistributed-systemscachingdata-modelingscalability
  • Design and implement an asynchronous request coalescer that collects individual key lookups into windowed batches, handles deduplication, and correlates responses.

    Model answerasyncbatchingevent-loopconcurrency
  • Three-part fundamentals question on how pytest fixtures are scoped and torn down, how decorators wrap functions, and how generators stream data lazily.

    Model answerpythonpytestgeneratorsdecorators
  • Design a service that queries multiple vendor APIs concurrently, selects the best offer within constraints, and coordinates payment with order placement.

    Model answerdistributed-systemssaga-patternidempotency
  • Build a system that aggregates streaming location data into grid cells, surfaces high-activity regions, and compare distributed consensus approaches.

    Model answerstreamingdistributed-systemsconsensusgeospatial
  • Trace every step a CPU takes to resolve a virtual address — TLB, page-table walk, MMU checks, page faults, and context-switch invalidation.

    Model answeroperating-systemsvirtual-memoryTLBMMU
  • Build a payment platform for retail terminals that authorizes transactions, accepts post-authorization tip adjustments, and settles batches nightly.

    Model answerpaymentsdistributed-systemsidempotencybatch-processing
  • Design an automated testing strategy for a three-endpoint user service that survives frequent deployments without breaking existing behavior.

    Model answertestingREST APICI/CDtest automation
  • Design a system that handles large file uploads with resumability, processes them through async validation and transformation stages, and notifies users of completion.

    Model answerdistributed-systemsasync-processingfile-uploadscalability
  • Answer four core software engineering questions covering thread synchronization, memory padding, OOP polymorphism, and idempotent operations.

    Model answerconcurrencymemory-layoutobject-oriented-programmingdistributed-systems
  • Design a system that reliably ingests high-volume dispute events from external networks and exports a daily batch file to a downstream accounting system.

    Model answerdistributed-systemsdata-pipelineidempotencybatch-export
  • Design a backend system handling 100k reads/sec and 10k booking attempts/sec with sub-200ms latency, preventing double-bookings under viral traffic spikes.

    Model answerdistributed-systemsconcurrencyscalabilityconsistency
  • Design a scalable service where clients store, retrieve, list, and delete binary objects addressed by key inside named buckets.

    Model answerstoragedistributed-systemsreplication
  • Design an observability system that ingests high-volume metrics, supports real-time dashboards and historical analysis, and evaluates alerting rules.

    Model answertime-seriesobservabilitystreamingdata-modeling
  • Explain why a naive GPU matrix transpose causes uncoalesced memory traffic, then design a tiled shared-memory kernel that achieves coalesced reads and writes.

    Model answerGPUmemory-coalescingparallel-computingshared-memory
  • Architect a system that stores, processes, and serves user-generated photos and short videos at planetary scale with strong durability, low latency, and controlled cost.

    Model answerobject-storageCDNmedia-processingdistributed-systems
  • Design a service that enforces per-client request limits across a distributed application, handling 100k+ QPS with single-digit millisecond latency.

    Model answerdistributed-systemsrate-limitingredisscalability
  • Design an embedded onboard pipeline that ingests eight surround-view cameras and delivers tracked 3D obstacles, free space, and lane geometry to a motion planner within 40 ms.

    Model answerautonomous-vehiclesreal-time-systemscomputer-visionembedded-systems
  • Build an in-memory key-value store supporting CRUD, filtered queries, automatic expiration, and historical lookups across four progressive levels.

    Model answerdata-structurestime-seriesversioningttl
  • Design an async notification system for item availability and due-date reminders with durable idempotency and crash recovery.

    Model answerasync-tasksidempotencydistributed-systems
  • Design a command-line tool that removes duplicate lines from files too large to fit in memory, using external sorting or partitioning.

    Model answerexternal-memorydeduplicationsortingscalability
  • Design a distributed inventory service that tracks stock across many locations, handles concurrent reservations without overselling, and pushes availability updates to clients in near real-time.

    Model answerdistributed-systemsconcurrencycachingreal-time
  • Contrast two distributed consensus approaches, analyzing their mechanisms for leader election, replication, and fault tolerance to recommend one for a production service.

    Model answerdistributed-systemsconsensusfault-tolerancereplication
  • Build a dashboard that shows time-series metrics with clear separation between data ingestion delay and query response time.

    Model answermonitoringtime-seriesdata-ingestionreal-time-systems
  • Design the core feed delivery system for a social platform, focusing on how to balance write amplification against read latency for users with vastly different follower counts.

    Model answerfeed generationfan-outcachingdistributed systems
  • Build a backend that handles millions of score updates per second, returns a player's exact position plus surrounding ranks in milliseconds, and supports friend-only views.

    Model answerleaderboardsscalabilityrankingreal-time-systems
  • Design a low-latency system that returns the top-N pieces of content per workspace, ranked by a weighted engagement score, over rolling time windows.

    Model answerstreamingaggregationcachingtime-windows
  • Design a scalable system to store, index, and stream synchronized sensor recordings from autonomous vehicles, supporting variable-speed playback and metadata filtering.

    Model answerstreamingdistributed-systemsdata-modelingcaching
  • Implement a 5-letter, 5-guess word puzzle in React with correct duplicate-letter tile scoring, virtual keyboard state, and clean game-over transitions.

    Model answerreacttypescriptgame-logicstate-management
  • Design a cursor-paginated API for a large append-only event ledger that avoids offset pitfalls and stays stable under concurrent inserts.

    Model answerpaginationapi-designdatabase-indexingscalability

More topics