The single-writer principle

A short walk through the single-writer principle: why exactly one thread should mutate a piece of state, why this is faster than ‘real’ lock-free code in most cases, and how the Disruptor pattern operationalises it.

May 3, 2026 · 6 min · HFT Engineer's Roadmap