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 client sends a request with an idempotency key; duplicate attempts return the recorded outcome without repeating the mutation.
FIG. 01 — EXACTLY-ONCE MUTATION SEMANTICS

Newly Published

Latest concepts & problems

Browse all topics →
Problem · low-level-design2026-11-26
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.

Read deep dive →
Problem · engineering2026-11-26
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-26
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 · architecture2026-11-26
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 →
Problem · coding-algorithm2026-11-26
Top K Frequent Elements diagram

Top K Frequent Elements

Find the k most frequent integers without sorting all elements. Count occurrences, group values by frequency, and scan buckets from highest to lowest.

Read deep dive →
Problem · engineering2026-11-26
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%.

Read deep dive →

Find your starting point

Explore the handbook