Commonly used design patterns in async rust?

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 Arcs instead of references and synchronization primitives like RwLocks 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.