Fast and efficient network protocols in Rust
summary
Elfo implements a custom Rust protocol with a control TCP connection plus separate data streams, an initial feature-negotiating handshake, and an envelope format that carries protocol and message names. It uses LZ4 compression with a bytes-threshold strategy, TCP-style flow control with windows (example: sender 200 msgs/s, receiver 50 msgs/s, window 100), decoding that can skip unknown messages and runtime registration via linkme virtual tables, and exposes metrics for debugging.
AI-written summary · about
chapters (9)
- 0:00Network protocols in Rust
- 1:04Actor model with Alo
- 3:58Why not gRPC
- 7:27Distributed connections
- 10:37Encoding Alo messages
- 13:05Decoding resiliently
- 18:05Message compression
- 20:13Flow control for actors
- 21:59Conclusion
related talks
34mMove fast and don't break things: High-performance networking in Rust
50mHigh Performance Network Programming in Rust
11mA Decade of Rustls
20mRust for Safer Protocol Development
47mTaking Elixir to the Metal
46mTaking Elixir to the Metal with Rust
41mCap'n Proto and Rust: Type Systems for Sharing
02h 02mCloud Native Rust Workshop: Let's go parallel with Rust
