Common Mistakes with Rust Async

By Erèbe - Romain Gerard

Elevator Pitch

Let’s be honest, Async Rust is hard ! It has many more rough edges than Sync Rust and requires a different mindset, but it solves a problem space well, that is hard to tackle otherwise. Let’s embrace its differences, and share common anti-patterns to raise awareness to help you avoid them.

Description

The talk will share the same content than this blog post

The targeted audience is intermediate people familliar with Async Rust, or beginner that want to jump into the topic. Depending of what is needed to balance the topics of the conference, I can make the subject more beginner friendly by doing an introduction of how async work in Rust, or make it more for advanced people by adding at the end what is planned for Async in Rust in the future.

Notes

I think I am legit to talk about those topics :

  • I have been deploying in production for 4 years Async Rust code that power my company infrastructure
  • I contributed to several issues in the opensource community around async rust

https://github.com/hyperium/h2/issues/633

https://github.com/rust-lang/futures-rs/pull/2686

https://github.com/denoland/fastwebsockets/pull/63

https://github.com/nats-io/nats.rs/pull/177

  • I developped and maintain a “popular” open-source project with async-rust https://github.com/erebe/wstunnel