Skip to main content

A handbook for software systems

Understand the systems behind software.

Complex systems. Clear thinking.

Learn how engineering systems work, where they fail, and how to make sound design decisions.

Loading diagram…
Partition keys map clockwise to virtual nodes on a hash ring, limiting migration on topology changes.
FIG. 01 — PARTITION RING & VIRTUAL NODES

Newly Published

Latest concepts & problems

Browse all topics →
Problem · engineering2026-11-24
Unbiased Canary Deployments & Metric Evaluation diagram

Unbiased Canary Deployments & Metric Evaluation

A 5% canary deployment received 0.4% of actual requests—all new/anonymous users—because ALB sticky sessions pinned 95% of returning authenticated users to Baseline.

Read deep dive →
Problem · architecture2026-11-24
Two-Phase Commit (2PC) vs. the Saga Pattern diagram

Two-Phase Commit (2PC) vs. the Saga Pattern

Replace blocking XA/2PC distributed locks with an orchestrated Saga using semantic reservations, idempotent steps, transactional outbox messaging, and compensating actions for non-blocking fault tolerance.

Read deep dive →
Problem · engineering2026-11-24
Tuning Service Mesh Sidecar CPU & Latency diagram

Tuning Service Mesh Sidecar CPU & Latency

Strict Kubernetes CPU limits on Envoy sidecars trigger Linux CFS quota throttling during mTLS and xDS config bursts, stalling the single-threaded event loop and freezing all pod traffic.

Read deep dive →
Problem · engineering2026-11-24
Tuning Reverse Proxy Buffers to Prevent 502s diagram

Tuning Reverse Proxy Buffers to Prevent 502s

Oversized OAuth2 JWTs and cookies (> 8 KB) overflow Nginx's default 4K/8K `proxy_buffer_size`, triggering `502 Bad Gateway` for 6.5% of SSO and GraphQL requests.

Read deep dive →
Problem · engineering2026-11-24
Tuning Kubernetes HPA for Sudden Traffic Surges diagram

Tuning Kubernetes HPA for Sudden Traffic Surges

Default CPU-based HPA suffers a 3–5 minute blind spot during flash traffic surges due to metrics-server scrape intervals, HPA sync loops, container startup, and Cluster Autoscaler node provisioning.

Read deep dive →
Problem · architecture2026-11-24
Scaling the Transactional Outbox with CDC diagram

Scaling the Transactional Outbox with CDC

Under 15,000+ writes/sec, polling a PostgreSQL transactional outbox table with `SELECT ... FOR UPDATE SKIP LOCKED` and `DELETE`/`UPDATE` generates massive MVCC dead tuples, starves autovacuum, bloats B-tree indexes, and stalls event relay.

Read deep dive →

Find your starting point

Explore the handbook