Practice: Design, Containers, and a Full Example
Coding practices, design and architecture patterns, concurrency in containers, and an end-to-end project that ties the book together.
Coding Practices for Concurrency
Immutability, RAII locking, const-correctness as a concurrency tool, minimizing and confining shared state, and the naming and documentation conventions that make a threading contract legible without reading the implementation.
Design and Architecture Patterns
Pipeline and SEDA architectures, sharding and the single-writer pattern, the reactor and proactor behind half-sync/half-async, fan-out/fan-in, and a decision framework for matching a concurrency architecture to a latency or throughput goal.
Concurrency in Containers
cgroup CPU quota versus cpuset, why hardware_concurrency() lies inside a container, sizing pools to the real quota, and pinning under an orchestrator.
Full Example: Ingest, Match, Publish
An end-to-end low-latency pipeline (ingest, match, publish) that composes the concurrency, lock-free messaging, and observability patterns from earlier chapters, measured under load.