Series
Off-Heap Algorithms in Java
2 articles in this series
38 min total read
By Arthur Costa

1
Part 1
Off-Heap Algorithms in Java: The Ring Buffer Foundation
From a naive heap-based queue to an off-heap ring buffer with dramatically better throughput, tail latency, and GC behavior for high-frequency trading workloads.
Nov 15, 2025•20 min read•
AArthur Costa

2
Part 2
Wait-Free SPSC Queues in Java
How to replace synchronized queue handshakes with a wait-free Single-Producer Single-Consumer ring buffer that uses precise memory ordering instead of locks.
Dec 23, 2025•18 min read•
AArthur Costa