How large systems are put together: trade-offs, patterns, and the pieces that make them scale.
Load Balancing — How a load balancer spreads requests across servers, picks which one gets each request, and keeps working when one of them dies. (3 min read)
Consistent Hashing — Why hash(key) % N falls apart as servers come and go, and how placing keys and nodes on a ring fixes it. (3 min read)
Database Replication — Replication keeps copies of the same data on more than one database node. The immediate reason is durability — a disk failure on one machine shouldn't mean the… (3 min read)
Retries: A Go HTTP Retry Transport — A drop-in http.RoundTripper that retries only idempotent requests, rewinds the body, bounds each attempt and the whole call, honours Retry-After and backs off with full jitter. (3 min read)
Circuit Breakers — Failing fast when a dependency is sick: the three states and their transitions, what counts as a failure, rate-based windows, fallbacks, and a breaker built and tested in Go. (31 min read)
Bulkheads — Capping how much of your system one slow dependency can occupy: semaphore and worker-pool isolation, sizing with Little's Law, bounded queues, adaptive limits, and composing with breakers and retries. (26 min read)
Streaming, Data Movement, and How Bytes Travel — How bytes move between producer and consumer: framing, push versus pull, buffering and backpressure, then a gRPC-to-S3 upload pipeline in Go traced byte by byte. (35 min read)