| ▲ | likeabbas 6 hours ago | |||||||
I have some test code that runs a comparison of Hyper pre-async (aka thread per request) vs async (via Tokio), and the pre-async version is able to process more requests per second in every scenario (I/o, CPU complex tasks, shared memory). I'll publish my results shortly. I did these as baselines because I'm testing finishing the User Managed Concurrency Groups proposal to the linux kernel which is an extension to provide faster kernel threads (which beat both of them) | ||||||||
| ▲ | otabdeveloper4 10 minutes ago | parent | next [-] | |||||||
Async only exists because languages like Python and Javascript have global interpreter locks that don't play nice with threads. Using async for languages like Rust or C++ is cargo cult by people who don't know what the hell they're doing. [Caveat: there's a use case for async if you're doing embedded development where you don't have threads or call stacks at all.] | ||||||||
| ▲ | iknowstuff 5 hours ago | parent | prev [-] | |||||||
How many concurrent requests? | ||||||||
| ||||||||