Archprimer

Fundamentals

Start here. The building blocks every architecture is made of, in the order you'll actually reach for them.

13 topics·~78 min total
  1. 1
    Concept

    Load Balancer

    A component that distributes incoming traffic across multiple servers using health checks and balancing algorithms, operating at L4 (transport) or L7 (application).

    6 min
  2. 2
    Concept

    DNS

    The internet's naming system that resolves human-readable domains to IP addresses via recursive and authoritative resolvers, records, and TTL-based caching.

    6 min
  3. 3
    Concept

    CDN

    A globally distributed network of edge servers that caches static content near users to cut latency and offload the origin, using origin pull and TTL-based freshness.

    6 min
  4. 4
    Concept

    Caching

    Storing hot data in a faster, closer layer to cut latency and load, governed by hit ratio, eviction policies like LRU, and the hard problem of invalidation.

    7 min
  5. 5
    Concept

    Redis

    An in-memory data store used as a cache, session store, rate limiter, and message broker — microsecond reads.

    4 min
  6. 6
    Pattern

    Cache-Aside

    The app checks the cache first and loads from the database only on a miss — the default caching strategy.

    3 min
  7. 7
    Tradeoff

    SQL vs NoSQL

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

    4 min
  8. 8
    Concept

    Replication

    Copying data across multiple nodes for read scaling and high availability, using leader-follower or multi-leader topologies with synchronous or asynchronous propagation.

    7 min
  9. 9
    Concept

    Sharding

    Horizontal partitioning that spreads rows of one logical dataset across many independent nodes, using a shard key to route each request to the node that owns the data.

    8 min
  10. 10
    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
  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
    Architecture

    URL Shortener

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

    5 min
  13. 13
    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