Главная
Study mode:
on
1
Intro
2
Who uses asynchronous IO
3
Synchronous IO
4
Rust
5
Asynchronous IO
6
Advantages of asynchronous IO
7
asynchronous IO in Rest
8
Metal IO
9
Echo Server
10
Why Tokyo
11
Portal
12
Stream
13
Futures
14
Future CPU Pool
15
About Tokyo
16
Event loop implementation
17
Connection handling
18
Use case identification protocol
19
Invalid port
20
First solution
21
Problems
22
Tokyo Service
23
SimpleService
24
Conclusion
Description:
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.

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

Rust
Add to list