blog/disruptor-ringbuffer.md
2 min read
Java LMAX Disruptor. Part 1: Preallocated RingBuffer
A regular queue allocates a new object for every message and puts pressure on the GC. We look at how the LMAX Disruptor preallocates the entire RingBuffer and reuses event objects, taking allocations out of the producer's hot path.