New comment by hitekker in "Futurelock: A subtle risk in async Rust"
rfd.shared.oxide.computer·5d·
Discuss: Hacker News
Flag this post

Very early in the development of the control plane, we considered whether to build our big new distributed system using Rust’s async/await or more traditional synchronous threaded code. [rfd79] discussed this issue and came to the weak conclusion to prefer async/await, in no small part because much of the ecosystem we wanted to use (e.g., low-level http crates) was already async and seemed to be moving further in that direction, and we’d already written some async code.

Three years on, we’ve successfully built a big, complicated system using async Rust. But recently-discovered behavior around async task cancellation has shaken our confidence. We’ve encountered a few instances of hard-to-debug state corruption that resulted from a class of programming error that’s easy …

Similar Posts

Loading similar posts...