Vol. 1
Getting Started & Mental Model
6 chapters · complete
Establishes the three concepts that run through the whole book — generations, leases and reclaim-at-zero — gets your first app running, and teaches you how to read logs and debug.
Vol. 2
Configuration & Assembly
7 chapters · complete
Every xs.json field explained, vhosts and SNI, the Custom knob system, the four static-layer knobs, multi-service topologies, certificate management and config rollback semantics.
Vol. 3
Protocol Development
12 chapters · complete
HTTP's three-way return and response building, routing (map + pattern), JSON / templates / vhosts, the six WebSocket callbacks, TCP streams and UDP, connection takeover.
Vol. 4
Hot Reload Deep Dive
6 chapters · complete
The desired-state coordination model, trigger and query APIs, ServiceSwap/xsSwapTake state handover, generation lifecycle, GC and zero leaks, boundaries and anti-patterns.
Vol. 5
Extensions, Ops & Projects
17 chapters · complete
SQLite / XTP2 / custom extensions, the nested-TCC plugin system, deployment and operational visibility, security boundaries, plus three hands-on projects: a REST API, a TCP gateway and a multi-vhost site farm.
How to read this book
Every chapter follows the same eight parts: overview → intro → concepts → examples → contract → common mistakes → exercises (three levels + acceptance) → summary cheatsheet. Examples carry a "verified on a real machine" tag: file names are traceable, commands can be copied directly, outputs come from actual runs. Chapter 1 turns this very template into the contract.
| Reader | Path |
|---|---|
| Backend developers | Vol. 1 → Vol. 3 (pick your protocols) → Vol. 4 (hot reload is a must) → Vol. 5 projects |
| Ops / deployment | Vol. 1 ch. 01–02 → Vol. 2 (config in depth) → Vol. 5 ch. 42–39 (deploy / observability / security) |
| Contributors / deep divers | Read cover to cover; jump to the xrt book via the "further reading" boxes at chapter ends for xrt fundamentals |