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 leader replicates a log to two followers; two durable copies form a majority.
FIG. 01 — THE SHAPE OF CONSENSUS

Newly Published

Latest concepts & problems

Browse all topics →
Problem · system-design2026-12-06
Design a Distributed Job Scheduler & Task Execution Platform diagram

Design a Distributed Job Scheduler & Task Execution Platform

Holding HTTP connections open for a 40-second report, video transcode, or payment reconciliation exhausts API server threads, triggers HTTP/LB timeouts, and turns client retries into duplicate work. A production job platform decouples a millisecond 202 Accepted submission API and durable control plane from isolated queues, capability-matched worker pools, fenced leases, bounded full-jitter retries, and Little's Law capacity sizing.

2026-12-06Solve problem
Concept · security2026-12-05
Envelope Encryption (KEK -> DEK Hierarchy) diagram

Envelope Encryption (KEK -> DEK Hierarchy)

Sending 100k QPS of 1 MB payloads directly to an HSM saturates network links and hardware crypto appliances at ~2k QPS.

2026-12-05Read concept
Concept · concurrency2026-12-05
Lock-Free Ring Buffer (LMAX Disruptor) diagram

Lock-Free Ring Buffer (LMAX Disruptor)

Standard BlockingQueues suffer mutex contention, kernel futex wakeups, GC node allocations, and L1 false sharing.

2026-12-05Read concept
Concept · algorithms-data-structures2026-12-05
Roaring Bitmaps (Compressed 32-Bit Sets) diagram

Roaring Bitmaps (Compressed 32-Bit Sets)

A dense bitset over 2^32 integers consumes 512 MB even when only 500 bits are set.

2026-12-05Read concept
Problem · system-design2026-12-05
Design a Distributed Secrets Management, Dynamic Lease & Envelope KMS Platform diagram

Design a Distributed Secrets Management, Dynamic Lease & Envelope KMS Platform

A production KMS must never expose plaintext secrets to storage disks or Raft logs while still serving 100k decrypt QPS under 2 ms.

2026-12-05Solve problem
Problem · low-level-design2026-12-05
Design a Sub-Microsecond MPMC Ring Buffer for a Financial Matching Engine diagram

Design a Sub-Microsecond MPMC Ring Buffer for a Financial Matching Engine

High-frequency matching engines cannot tolerate JVM GC pauses or mutex lock jitter on the order ingress path.

2026-12-05Solve problem

Find your starting point

Explore the handbook