> I guess one big question here is whether there's a higher layer abstraction that is available to wrap around patterns to avoid this.
Something like Actors, on top of Tokio, would be one way: https://ryhl.io/blog/actors-with-tokio/
Something like Actors, on top of Tokio, would be one way: https://ryhl.io/blog/actors-with-tokio/
Maybe actor abstractions end up compiling away fairly nicely in Rust though!
In a rationale world, this works. In a prejudiced world, devs fight against locks in actor models.
Hence why I had to roll my own …