
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.

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.