Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by hintymad on Friday June 03, 2022 @01:48AM
(#31604690)
A naive question: do I have to use async to build a web service or RPC service? If I code in Java, I rarely need to worry about async since a service framework will take care of concurrency. I may throw in thread local and a scheduler here and there to handle some shared context or background tasks, or using some bounded queue to manage some boutique concurrency. Will using Rust be similar? Or Iād have to know all the async as people mentioned in this thread?
[ Parent
| on HN ]
Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by formerly_proven on Friday June 03, 2022 @02:34AM
(#31604965)
No, you don't. Threaded HTTP servers and standard, blocking network clients are available, just not that en-vogue. The very highest performance servers and clients will be async, because threading doesn't get you there, but then again, you (as in: application developer) almost never need that kind of performance in your HTTP stack anyway (this does not make using Rust for such a project pointless in any way).