Other notable libraries
So far, we have covered JMH, Netty, and Jackson and posited that they are core libraries focused on high performance in Java. Each is designed for a specific type of task. There are other libraries available that are worth learning about. This section explores three additional libraries: Agrona, Eclipse Collections, and Guava.
Agrona
Agrona is a data structure collection specifically designed for creating high-performance Java applications. These data structures include maps and ring buffers. An example use case is a stock trading application whose success hinges on low latency.
Key features of Agrona include the following:
- Non-blocking data structures – this supports high throughput and results in low latency
- Specifically designed for high-frequency stock and securities trading systems
- Uses direct buffers, contributing to off-heap memory management efficiencies
Let’s look at an implementation example of Agrona that...