Disruptor is a low latency, inter-thread communication library in Rust inspired by LMAX’s Disruptor. By adding the library to your Cargo.toml file, you can effectively use single and batch publication for optimal latency and throughput. It even supports pinning threads on cores to reduce context switching latency. The advanced usage allows for multiple producers and interdependent consumers. Performance benchmarks show Disruptor outperforming Crossbeam, emphasizing lower latency and higher throughput with batch event publication. While Crossbeam is praised, Disruptor excels in managing CPU and memory for improved performance. Contributions for enhancements are welcomed, but the library is considered complete with no future roadmap items.
https://github.com/nicholassm/disruptor-rs