#distributed-systems
11 posts
Caching from First Principles: Policies, LRU, and Cache Tiers
Learn cache reads and writes, invalidation, read-through loading, eviction, and an LRU implementation with operation traces.
backenddistributed-systemsfundamentalssystem-designEstimate Capacity, Find Bottlenecks, and Set Useful SLOs
Use powers of ten to size storage, caches, and servers, then reason about throughput, latency, availability, and service targets.
backenddistributed-systemsfundamentalssystem-designStorage from First Principles: Logs, Indexes, and Transactions
Connect key-value logs, documents, relational tables, indexes, SQL, normalization, and transactions through worked examples.
backenddistributed-systemsfundamentalssystem-designFrom Code to Service: Requests, APIs, and Web Servers
Follow requests from clients to web servers, clarify requirements, and understand APIs, protocols, concurrency, and application tiers.
backenddistributed-systemsfundamentalssystem-designSystem Design Estimates: A Powers-of-Ten Cheat Sheet
A junior-friendly system design interview cheat sheet: powers of ten, time conversions, QPS, storage, bandwidth, cache load, and collision math.
backenddistributed-systemsfundamentalssystem-designRoute and Deliver Requests: Load Balancers, DNS, and CDNs
Understand proxies, health checks, redundant load balancers, DNS routing, anycast, and CDN caching through a photo app.
backenddistributed-systemsfundamentalssystem-designReplication and Consistency: Leaders, Quorums, and CAP
Trace replication lag, multi-leader conflicts, quorum reads and writes, failure tolerance, and CAP with concrete examples.
backenddistributed-systemsfundamentalssystem-designSharding and System Design: Placement, Movement, and Trade-offs
Work through shard keys, modulo routing, logical buckets, consistent hashing, migrations, and three complete design reviews.
backenddistributed-systemsfundamentalssystem-designUnique IDs: Counters, Base62, Hashes, and Key Pools
Work through ID generation with Base62 code, capacity math, collision handling, coordinated ranges, and pre-generated key pools.
backenddistributed-systemsfundamentalssystem-designDatabase Replication: Strategies, Topologies, and What to Use When
A practical guide to PostgreSQL replication — physical vs logical, sync vs async, single-leader / multi-leader / leaderless, and replica-read rules.
postgresqldatabasedistributed-systemsreplicationarchitectureSharding Postgres: When One Database Stops Being Enough
Sharding PostgreSQL at scale — shard keys, routing, distributed transactions, online rebalancing, and the 15 complexities every team eventually hits.
postgresqldatabasescalingarchitecturedistributed-systems