What are the commonly used design patterns which are used in the async rust ecosystem ?
There is a book about design patterns in Rust:
There isn't a section specifically about async Rust, but you still might find it interesting.
I personally just use a lot of Arc
s instead of references and synchronization primitives like RwLock
s to adhere to the multi threaded nature of the tokio runtime. Message passing is also a good way to share data. But that's more related to multi threaded programming rather than concurrent programming with futures.
1 Like
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.