News for hackers. Stuff that matters.
Re:A four year plan for async Rust by dymk on Tuesday November 07, 2023 @11:54AM (#38179256)
I have plenty of gripes about async in rust, but one of the things it's surprisingly good at is isolation of async runtimes. There's no reason you can't have multiple tokio runtimes, or transient runtimes, in your application.

Now if only the other warts were fixed, like the particularly poor compiler errors when there's an issue within an async function...

Re:A four year plan for async Rust by tuetuopay on Tuesday November 07, 2023 @12:25PM (#38179798)
Yup. I was blown away when I spun up five different tokio runtimes in the same app all communicating through channels. I expected at least the tokio-aware channels to be problematic but not in the slightest. It's now humming in prod doing its business. Once you get the basics, it's quite easy to lego stuff out and get the best of both worlds.