Fundamentals
Start here. The building blocks every architecture is made of, in the order you'll actually reach for them.
- 1Concept
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 - 2Concept
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 - 3Concept
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 - 4Concept
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 - 5Concept
Redis
An in-memory data store used as a cache, session store, rate limiter, and message broker — microsecond reads.
4 min - 6Pattern
Cache-Aside
The app checks the cache first and loads from the database only on a miss — the default caching strategy.
3 min - 7Tradeoff
SQL vs NoSQL
Structured, relational, ACID databases versus flexible, horizontally-scalable non-relational stores.
4 min - 8Concept
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 - 9Concept
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 - 10Concept
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 - 11Concept
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 - 12Architecture
URL Shortener
Turn long URLs into short, unique links and redirect billions of reads with sub-100ms latency.
5 min - 13Architecture
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