3 ms·
Flux is a high-performance, zero-copy message transport library for Rust
- ziyasal 1y agoFlux is a high-performance, zero-copy message transport library for Rust, designed for ultra-low-latency applications requiring maximum throughput. It is built on patterns & practices inspired by LMAX Disruptor and Aeron, with modern Rust optimizations.
- nicwolff 1y agoWhy can't AIs make ASCII art boxes line up? ┌─────────────────────────────────────────────────────────────────┐ │ Flux Architecture │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │ │ Producer │ │ Producer │ │ Producer │ │ │ │ (P1) │ │ (P2) │ │ (P3) │ │ │ └─────┬───────┘ └─────┬───────┘ └─────┬───────┘ │ │ │ │ │ │ │ └──────────────────┼──────────────────┘ │ │ │ │ │ ┌──────▼──────┐ │ │ │ Ring Buffer │ ← Lock-free, zero-copy │ │ │ (1M slots) │ cache-line aligned │ │ └──────┬──────┘ │ │ │ │ │ ┌──────────────────┼──────────────────┐ │ │ │ │ │ │ │ ┌─────▼──────┐ ┌─────▼──────┐ ┌─────▼──────┐ │ │ │ Consumer │ │ Consumer │ │ Consumer │ │ │ │ (C1) │ │ (C2) │ │ (C3) │ │ │ └────────────┘ └────────────┘ └────────────┘ │ │ │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ Performance Optimizations │ │ │ │ • SIMD (NEON/AVX2) data copy │ │ │ │ • Hardware CRC32 (ARM/x86) │ │ │ │ • NUMA-aware allocation (Linux) │ │ │ │ • Huge pages + io_uring (Linux) │ │ │ │ • Cache-line padding + prefetching │ │ │ │ • Batch processing (8K-128K slots) │ │ │ └─────────────────────────────────────────────────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘
- ziyasal 1y agoAhaha, yeah it fails to align thats true, but still not that bad on documenting (BTW documentation needs to be updated, I already put a note for this concern in the Readme ..)