Scaling and the Host
Scale a single box with caching and shard-per-core partitioning, move the slow parts off the hot path, then see what the host itself costs you and when it's worth taming. The pattern catalog closes out the part and the main guide, before the appendices reach past a single box.
Caching
A barcode-to-route cache sits in front of a slow backing resolver built to cost something real, measured across four replacement policies (LRU, LFU, FIFO, SIEVE) on the same Zipf-skewed access trace, plus TTL staleness and a memoized pure function.
Shard-per-core partitioning
An in-flight parcel tracker measured as one shared map behind one lock versus shard-per-core (direct hash routing, no lock on the hot path), then the sharded design again under induced hot-key skew before and after a routing-table rebalance.
Asynchronous processing
The scan-to-divert hot path's audit write, measured synchronous-inline against handed off to a background event-loop consumer (epoll multiplexing, request batching, a buffer pool, bounded backpressure), plus the identical hand-off in idiomatic Rust, where async/await and an executor replace the event loop, and off-path telemetry export to the LGTM stack.
Taming the host
The scan-to-divert hot path run against a reproducible background noise load inside a throwaway KVM guest, measured on a stock boot against CPU isolation, pinning, SCHED_FIFO scheduling, and memory locking applied individually and combined, alongside a cyclictest before/after of the guest's own scheduling latency.
Catalog index
The ten technique patterns from this guide, mapped to the part of the scan-to-divert budget each one narrows, the problem signal that calls for it, and the effect its own chapter measured.