Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Techniques for Writing Concurrent Applications with Asynchronous I/O in Rust

Rust via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore techniques for writing concurrent applications with asynchronous I/O in this 32-minute Rust conference talk. Delve into the comparison between asynchronous and traditional synchronous approaches, examining how they impact application architecture. Learn to implement asynchronous I/O in multi-threaded concurrent applications, starting with a high-level overview before diving into code examples. Discover useful code idioms and best practices for designing ergonomic Rust APIs, including methods for storing callbacks with unique types, calling them from different threads, and achieving lifetimes shorter than 'static in threads. Gain insights from real-world experience in developing a Web framework using the asynchronous version of Hyper, with principles applicable to lower-level libraries and other protocol stacks.

Syllabus

Intro
Who uses asynchronous IO
Synchronous IO
Rust
Asynchronous IO
Advantages of asynchronous IO
asynchronous IO in Rest
Metal IO
Echo Server
Why Tokyo
Portal
Stream
Futures
Future CPU Pool
About Tokyo
Event loop implementation
Connection handling
Use case identification protocol
Invalid port
First solution
Problems
Tokyo Service
SimpleService
Conclusion

Taught by

Rust

Reviews

Start your review of Techniques for Writing Concurrent Applications with Asynchronous I/O in Rust

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.