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…
A lock manager grants leases with strictly increasing fencing tokens; storage rejects stale tokens from expired leases.
FIG. 01 — FENCING TOKENS & LEASE SAFETY

Newly Published

Latest concepts & problems

Browse all topics →
Problem · low-level-design2026-12-01
Catching Silenced Exceptions in Async Executors diagram

Catching Silenced Exceptions in Async Executors

Exceptions thrown inside `executor.submit()`, `ScheduledExecutorService.scheduleAtFixedRate()`, and unawaited `CompletableFuture`s are captured silently inside `FutureTask`—halting periodic jobs permanently and hiding production failures with zero logs.

2026-12-01Solve problem
Problem · engineering2026-12-01
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.

2026-12-01Solve problem
Problem · architecture2026-12-01
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.

2026-12-01Solve problem
Problem · architecture2026-12-01
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.

2026-12-01Solve problem
Problem · coding-algorithm2026-12-01
Top K Frequent Elements diagram

Top K Frequent Elements

Find the k most frequent integers without sorting all elements. Count occurrences in a hash map, group values into frequency-indexed buckets [1..N], and scan from highest to lowest.

2026-12-01Solve problem
Problem · engineering2026-12-01
Mitigating TLS Handshake Storms on Reconnects diagram

Mitigating TLS Handshake Storms on Reconnects

A simultaneous ingress/ALB rotation drops 120,000 mTLS connections; without shared TLS 1.3 session ticket keys or jittered reconnects, 60,000 full ECDHE + RSA-2048 handshakes/sec pin CPU at 100%.

2026-12-01Solve problem

Find your starting point

Explore the handbook