|
|
|
|
|
by switchbak
1471 days ago
|
|
Backend logic is not necessarily straightforward, that depends completely on your domain. Each request uses a single thread? In the stuff I'm working on we often orchestrate asynchronous operations across many different systems, that alone would involve a lot of parallelism and concurrency. We lean heavily into functional code with immutable data, but we're not writing a systems level program. If you're doing much beyond simple crud, I imagine you're going to want a lot of what you're describing fairly quickly. |
|
There are different models for asynchronous execution across different systems. Even then, Rust isn’t a silver bullet.
A request can be scoped to a single thread, and then messages can passed across systems (queues, pubsub, etc), stored to a database, etc etc.
Not having concurrency within a single process doesn’t mean someone is doing simple CRUD, unless you’ve mistaken Facebook.com, Twitter, and Amazon retail website to all be simple CRUD applications.
Rust seems like a solution for your very specific use case, or it’s better suited for C++ and systems programming scenarios.
The borrow checker is a pain in the ass to use. Presenting Rust as silver bullet and ignoring its cost is misguided and near sighted at best. It’s not just Rust but saying <X> is the perfect solution is generally wrong. Every thing has a cost.