1 Hour Dive into Asynchronous Rust

Sdílet
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

Komentáře • 18

  • @karpfenboy
    @karpfenboy Před 9 měsíci +17

    starts at 3:16

  • @JimmyKal
    @JimmyKal Před 10 měsíci +9

    this is the goto tutorial for tokio, thx for creating it!

    • @ardanlabs
      @ardanlabs  Před 10 měsíci +1

      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/

  • @karpfenboy
    @karpfenboy Před 9 měsíci +7

    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

  • @bbkr2063
    @bbkr2063 Před 2 měsíci

    Tokio oneshot channels was gamechanger for my current project. I had no idea that such convenient way exists. Thank you!

  • @gulktroktet
    @gulktroktet Před 7 měsíci

    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.

    • @ardanlabs
      @ardanlabs  Před 7 měsíci

      We're glad to hear you found this stream so useful! Stay tuned for more streams like this one this year😎

  • @dlogankeenan
    @dlogankeenan Před 9 měsíci +3

    This video was great, thank you!

  • @ronniemagatti3342
    @ronniemagatti3342 Před 5 měsíci +1

    This was a great watch!

  • @miltoneduardososa378
    @miltoneduardososa378 Před 10 měsíci +2

    Great talk, clear examples. Thanks for sharing this!

    • @uchennaofoma4624
      @uchennaofoma4624 Před 10 měsíci

      Yeah. I recently started learning rust (coming from js). This video really helped me understand how the tokio async runtime works in rust

    • @ardanlabs
      @ardanlabs  Před 10 měsíci

      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!🤓

  • @cramhead
    @cramhead Před 10 měsíci +1

    Good talk. Thanks for sharing

    • @ardanlabs
      @ardanlabs  Před 10 měsíci

      Thanks for watching, we're glad you enjoyed it!😁

  • @jfbarbosaboro
    @jfbarbosaboro Před 9 měsíci

    Thank you so much for this lecture! It was very useful to get started with async Rust!

    • @ardanlabs
      @ardanlabs  Před 9 měsíci

      We're glad you found it helpful!🤗

  • @janedoe6182
    @janedoe6182 Před 11 měsíci +2

    43:22 thread::sleep() in asynchronous code?

    • @everestshadow
      @everestshadow Před 11 měsíci +4

      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.