Low latency Java systems
summary
Claims Java can be viable for microsecond-scale latency (roughly ~10 μs typical) if you eliminate GC, prewarm the JVM and control memory layout; shows an event pipeline built with LMAX Disruptor and off-heap buffers that uses Chronicle Queue / Chronicle Map for brokerless messaging and shared state and pin threads to cores for cache locality. Demonstrated P99 numbers reportedly under 6 ns in local tests, but demos sometimes fail on the latest JDK and require careful warmup, padding and native/off-heap patterns to actually work.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:06Defining low-latency systems
- 3:33Latency and performance
- 5:40Core metrics and concepts
- 7:15Why choose Java?
- 9:40Challenges in Java
- 11:47JVM internals
- 15:21Memory and caching
- 17:36Heap optimization techniques
- 21:41Object reuse strategies
- 24:44Advanced patterns
- 26:45Primitive collections
- 29:50Thread synchronization
- 31:55Thread affinity
- 33:24The LMAX Disruptor
- 37:20Chronicle Map and Queue
- 39:42Conclusion and resources
