We didn't rewrite our feed handler in Rust
6 hours ago
- #Programming Languages
- #Performance Optimization
- #Fintech
- Decision to rewrite market data feed handler in C++ despite Rust's popularity in fintech.
- Existing implementation had technical debt, complex concurrency model, and lock contention issues.
- New implementation requirements: minimal shared state, basic parallelism, and predictable sub-100μs latencies.
- Rust's advantages: built-in tooling, compiler error clarity, safety for finance applications.
- Challenges with Rust: buffer reuse optimization, self-referential structs, compile-time generics limitations.
- C++ benefits: code reuse, control over resources, flexibility with templates, team expertise.
- Future considerations: C++26 compile-time reflection, Rust's Polonius borrow checker improvements.
- Conclusion: Both Rust and C++ have niches in fintech; pragmatic language choice based on requirements.