Archprimer

Interview Fast-Track

Short on time? The highest-yield systems and tradeoffs interviewers actually ask about.

12 topics·~77 min total
  1. 1
    Architecture

    URL Shortener

    Turn long URLs into short, unique links and redirect billions of reads with sub-100ms latency.

    5 min
  2. 2
    Architecture

    Rate Limiter

    Design a distributed rate limiter using token bucket and sliding window algorithms with Redis-backed counters to enforce per-user and per-API request limits.

    7 min
  3. 3
    Architecture

    WhatsApp / Chat

    A real-time messaging system built on persistent WebSocket connections, with message fanout, delivery/read receipts, and online presence at billions-of-messages-per-day scale.

    6 min
  4. 4
    Architecture

    Instagram Feed

    A photo-sharing service with a personalized timeline, balancing fanout-on-write and fanout-on-read to generate feeds cheaply, and a CDN to serve media globally.

    5 min
  5. 5
    Architecture

    Netflix

    Video streaming at global scale using pre-positioned content on Open Connect appliances, adaptive-bitrate playback, a microservices control plane, and personalized recommendations.

    6 min
  6. 6
    Architecture

    Uber / Ride Matching

    A real-time ride-hailing system: ingesting driver locations, indexing them geospatially (geohash/H3), matching nearby drivers to riders, and computing surge pricing.

    6 min
  7. 7
    Architecture

    Dropbox / File Sync

    A file sync and storage service using content-defined chunking, block-level deduplication, a metadata service, and sync with conflict resolution across devices.

    6 min
  8. 8
    Tradeoff

    SQL vs NoSQL

    Structured, relational, ACID databases versus flexible, horizontally-scalable non-relational stores.

    4 min
  9. 9
    Tradeoff

    Kafka vs RabbitMQ

    Kafka is a durable, replayable distributed log for streaming; RabbitMQ is a flexible message broker with rich routing and per-message acks. Log vs broker.

    8 min
  10. 10
    Tradeoff

    Monolith vs Microservices

    A monolith is one deployable unit that is simple to build and operate; microservices split it into independently deployable services that scale teams at a cost of distributed complexity.

    9 min
  11. 11
    Concept

    CAP Theorem

    In a distributed system, a network partition forces a choice between consistency and availability — you cannot have both while partitioned; PACELC adds the latency-vs-consistency tradeoff in normal operation.

    7 min
  12. 12
    Concept

    Consistent Hashing

    A hashing scheme that maps keys and nodes onto a ring so that adding or removing a node remaps only a small fraction of keys, avoiding the mass reshuffle of modulo hashing.

    8 min