3 ms·
Are you sure rocket is actually faster than the Go/JVM equivalent? I'm a big fan of Rust, and I don't deny that it's possible for it to be faster, but my under
by leshow 9y ago
Are you sure rocket is actually faster than the Go/JVM equivalent?
I'm a big fan of Rust, and I don't deny that it's possible for it to be faster, but my understanding of where Rocket's async story is that it isn't there yet.
You're also using reqwest::Client inside your handlers, which is synchronous.
I'd just find it hard to believe that could beat an async JVM or Go implementation.
- MrBuddyCasino 9y agoYou're right, my statement was slightly misleading. Rocket is certainly not there yet, so it would be pointless to use it to get better performance right now. Actix however is already extremely fast and shows the potential of Rust, which _in the future_ I suppose might be a driver to pick Rust over other alternatives. Since language ergonomics and productivity are inferior over e.g. Kotlin, it would be pointless to pick where it not for technical advantages such req/s, memory usage or latency.
- leshow 9y agoYeah, I have seen actix, it looks great. The recent techempower benches have been particularly revealing of Rust's potential in this area.