1 Hour Dive into Asynchronous Rust
Vložit
- čas přidán 23. 08. 2024
- For engineers who want to learn how Asynchronous Rust helps create very high-performance servers with minimal resources.
Github Repo Link: github.com/the...
Unlock the potential of high-performance server creation with minimal resources through Asynchronous Rust. Experience the comprehensive async environment of Tokio, which drives the top-performing web servers and empowers you to seamlessly support any protocol of your choice.
Learn about:
- The differences between system threads and async, and how they work together.
- What are Tokio’s macros actually doing? Customize your async environment.
- Handling blocking and CPU intensive tasks with system threads while retaining a performant async server for I/O.
- Send data between tasks with channels.
- Use streams to iterate data with minimal impact on the server.
- Use tracing to provide visibility into your server pipeline.
- Tokio + Axum for a tiny web service with dependency injection and high-performance JSON support.
----
Other online courses → www.ardanlabs....
Other Links:
Website: www.ardanlabs....
Github: github.com/ard...
Twitter: / ardanlabs
starts at 3:16
this is the goto tutorial for tokio, thx for creating it!
Glad you found it valuable!🤓 Checkout our Ultimate Rust Bundle for more in depth on-demand Rust content like this & go from Zero to Hero!
Ult Rust Bundle: www.ardanlabs.com/training/individual-on-demand/rust-bundle/
Great presentation with lots of examples, thanks for making this freely available
Comments on which techniques to use when were really insightful
I also liked that you went over auxiliarly topics like logging/benchmarking
Tokio oneshot channels was gamechanger for my current project. I had no idea that such convenient way exists. Thank you!
This is such a great pace for a video. Anything interesting I can come back to, and all the info is there to dig deeper on my own. So much compressed into an hour.
We're glad to hear you found this stream so useful! Stay tuned for more streams like this one this year😎
This video was great, thank you!
This was a great watch!
Great talk, clear examples. Thanks for sharing this!
Yeah. I recently started learning rust (coming from js). This video really helped me understand how the tokio async runtime works in rust
Glad this video helped you! If you are new to Rust & want access to more content like this, checkout our Ultimate Rust Bundle here: www.ardanlabs.com/training/individual-on-demand/rust-bundle/
Within the bundle you will have access to hands-on training videos taking you from “Hello World” to building fast, safe & productive servers. Visit the link to learn more!🤓
Good talk. Thanks for sharing
Thanks for watching, we're glad you enjoyed it!😁
Thank you so much for this lecture! It was very useful to get started with async Rust!
We're glad you found it helpful!🤗
43:22 thread::sleep() in asynchronous code?
it's not. explicit thread::spawn making everything inside the closure go outside of (tokio) async context. It's an example of bridging sync/async context though it must be said it's a poor one and can be considered wrong.