KatInterview

practice a little every day — you've got this ♡

System Design Interview Problems

Practice 5971 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.

5971
Problems
2211
Auto-graded
15
Topics
272
Added today

Showing 1021–1050 of 1132 results

  • System DesignHardModel answer
    Design a Tag-Based Pub/Sub Message Broker

    Design a message queue where each message carries multiple topic tags and consumers receive only messages whose tags overlap their subscription set.

    System Designmessage-queuepub-subbitmasksystem-design
  • System DesignMediumModel answer
    Design an Edge Device Management Feature for Enterprise IoT

    Design a new feature for enterprise teams managing large fleets of edge devices, covering target user, core problem, MVP scope, metrics, and risks.

    System Designproduct designIoTedge computingenterprise
  • System DesignMediumModel answer
    Building a Digital Wallet Transfer Service

    Design a system that enables users to transfer funds between accounts with correct balances, handling failures, retries, and concurrent operations.

    System Designfinancial-systemsdistributed-systemstransactionsidempotency
  • System DesignMediumModel answer
    Building a Search Engine for Social Media Posts

    Design a search system that indexes post content, handles include/exclude queries, and ranks matches by term frequency across distributed infrastructure.

    System Designindexingdistributed-systemssearchranking
  • System DesignMediumModel answer
    Design a Product Price Monitor with Alerts

    Build a scalable service that tracks prices across e-commerce sites, stores historical data, and notifies users when prices drop below their thresholds.

    System Designdistributed-systemstime-seriesnotificationsdata-pipelines
  • System DesignMediumModel answer
    Architecting a Real-Time Messaging System at Scale

    Design a messaging backend that sustains 1M concurrent connections and 50K messages per second with sub-100ms end-to-end latency.

    System Designmessagingkafkawebsocketscassandra
  • System DesignMediumModel answer
    Real-Time Payment Authorization Platform with Encrypted User Vault

    Build the issuer backend that decides approve/decline for card transactions in under 200ms, handles settlement flows, and securely isolates sensitive cardholder information.

    System Designpaymentslow-latencysecuritydata-architecture
  • System DesignMediumModel answer
    Org Tree Reporting Hierarchy Count Service

    Design a system to efficiently query total subordinate counts in a corporate hierarchy while handling organizational structure changes.

    System Designtreescachingdistributed-systemsdata-modeling
  • System DesignHardModel answer
    Build a durable task scheduler with delayed execution

    Design a scheduler that runs jobs after a specified delay, with APIs, data structures, persistence, concurrency control, and recovery.

    System Designlow-level-designschedulingconcurrencydurability
  • System DesignHardModel answer
    Building Production HTTP APIs for ML Model Serving

    Design a production-grade REST API for serving machine learning predictions on images, covering endpoints, schemas, auth, reliability, and safety.

    System Designapi-designmachine-learningrestauthentication
  • System DesignMediumModel answer
    Design an LLM Inference Gateway with Request Batching

    Design a production gateway that receives streaming LLM requests, batches them efficiently, routes to GPU backends, and handles autoscaling under bursty traffic.

    System Designsystem designLLM servinginferencebatching
  • System DesignHardModel answer
    Debug and Fix a Spring Boot Movie Search Across Five Rules

    Repair a broken Spring Boot search endpoint so it handles partial case-insensitive matching, field targeting, popularity ordering, and a published-only filter.

    System Designspring-bootdebuggingjpasearch
  • System DesignMediumModel answer
    Self-Destructing Chat Messages: System Architecture

    Build a messaging platform where messages automatically vanish after being read, supporting multiple devices, offline scenarios, and abuse prevention.

    System Designmessagingdistributed-systemsreal-timesecurity
  • System DesignMediumModel answer
    Design an Event Deduplication and Reconciliation Pipeline

    Design a distributed pipeline that deduplicates high-volume event streams, reconciles them against a delayed authoritative source, and produces auditable daily aggregates.

    System Designstreamingidempotencydeduplicationreconciliation
  • System DesignMediumModel answer
    Full-Stack Comment CRUD and Async Image Pipeline

    Build a comment system with sort persistence and an image-generation service that handles long-running GPU jobs with reliable ordering and status delivery.

    System Designcrudasync-jobspaginationpersistence
  • System DesignMediumModel answer
    Build a Multi-Step Job Execution Engine with Dependency Management

    Design a system that executes jobs composed of dependent tasks, managing state, handling failures, and coordinating parallel work across distributed workers.

    System Designdistributed-systemsorchestrationstate-machinesreliability
  • System DesignHardModel answer
    Distributed Cache and Compute Service Architecture

    Design a thread-safe in-memory cache with LRU eviction and a CPU-intensive reconciliation service that handles traffic spikes and manages computational limits.

    System Designcachingconcurrencyscalabilitydistributed-systems
  • System DesignMediumModel answer
    Design a Distributed File Sync and Sharing Platform

    Build the architecture for a multi-client file storage system with hierarchical organization, collaborative sharing, chunked uploads, and cross-device synchronization.

    System Designdistributed-systemsstorageapi-designconsistency
  • System DesignMediumModel answer
    Diagnosing Performance Bottlenecks and Planning Infrastructure Scale

    Debug a backend service that degrades under load, then calculate the infrastructure needed to support given traffic assumptions.

    System Designcapacity-planningperformanceinfrastructurescalability
  • System DesignHardModel answer
    BI Connection Strategy and Filter Execution Order

    Choose connection modes, tune query performance, and understand filter precedence for dashboards over large datasets in business intelligence platforms.

    System Designbusiness-intelligencedata-architectureperformance-optimization
  • System DesignHardModel answer
    Build a real-time bidding platform with proxy bids and soft close

    Design a scalable auction system handling 500k live auctions, 5M watchers, proxy bidding, reserve prices, buy-it-now, soft close, and sub-200ms bid latency.

    System Designauctionsreal-timeconsistencysharding
  • System DesignMediumModel answer
    Diagnosing Latency Spikes in a Thread-Pool Server

    Investigate why a network server's P99 latency jumps from 10ms to 2s under load despite low CPU usage, and propose a plan to identify the bottleneck.

    System Designperformanceconcurrencyprofiling
  • System DesignMediumModel answer
    Build a Link Compression Service

    Design a scalable service that converts long URLs into compact aliases and redirects users back to the original destinations.

    System Designdistributed-systemsscalabilitycachingdatabases
  • System DesignMediumModel answer
    Backend Architecture for Activity Recording Platform

    Design a scalable system to capture high-frequency GPS data from mobile workout sessions, compute activity metrics, and serve historical workout information.

    System Designhigh-throughputgeospatialtime-seriesdata-modeling
  • System DesignHardModel answer
    Loyalty Ledger: Building a Transaction-to-Points Rewards System

    Design a service that converts card transactions to loyalty points, ensuring exactly-once processing, precise arithmetic, and safe redemptions.

    System Designdistributed-systemsledgeridempotencyconsistency
  • System DesignHardModel answer
    Build a Payment Processing System for Short-Term Campaigns

    Design a scalable payment platform handling donation submissions with async processing, idempotency guarantees, and burst traffic support.

    System Designpaymentsasync-processingdistributed-systemsidempotency
  • System DesignHardModel answer
    Log-Structured Storage: Replication, Recovery, and MVCC

    Describe how log-structured databases decouple compute from storage, use quorum-based replication, achieve fast recovery, and handle multi-version concurrency control.

    System Designdistributed-systemsdatabasesstorage-enginesreplication
  • System DesignMediumModel answer
    Message Status Tracking in a Chat Application

    Build the infrastructure for tracking and displaying message state (sent, delivered, read) in a messaging platform serving millions of users.

    System Designdistributed-systemsreal-timescalability
  • System DesignMediumModel answer
    Build a Real-Time Error Aggregation Service with Top-K Tracking

    Design a distributed system that ingests exception logs from microservices, groups similar errors, and maintains a live top-10 most common exceptions dashboard.

    System Designdistributed-systemsstreamingdata-pipelineaggregation
  • System DesignMediumModel answer
    Relational Schema for Multi-Tenant Permission System

    Design a normalized database schema supporting users, roles, permissions, role inheritance, and both global and resource-scoped access control.

    System Designdatabase-designauthorizationnormalizationschema-design