Async Rust: Unleashing the Power of Fearless Concurrency
- Length: 261 pages
- Edition: 1
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2024-12-17
- ISBN-10: 1098149092
- ISBN-13: 9781098149093
- Sales Rank: #898377 (See Top 100 Books)
Already popular among programmers for its memory safety and speed, the Rust programming language is also valuable for asynchrony. This practical book shows you how asynchronous Rust can help you solve problems that require multitasking. You’ll learn how to apply async programming to solve problems with an async approach. You will also dive deeper into async runtimes, implementing your own ways in which async runtimes handle incoming tasks.
Authors Maxwell Flitton and Caroline Morton also show you how to implement the Tokio software library to help you with incoming traffic, communicate between threads with shared memory and channels, and design a range of complex solutions using actors. You’ll also learn to perform unit and end-to-end tests on a Rust async system.
With this book, you’ll learn:
- How Rust approaches async programming
- How coroutines relate to async Rust
- Reactive programming and how to implement pub sub in async rust
- How to solve problems using actors
- How to customize Tokio to gain control over how tasks are processed
- Async Rust design patterns
- How to build an async TCP server just using the standard library
- How to unit test async RustBy the end of the book, you’ll be able to implement your own async TCP server completely from the standard library with zero external dependencies, and unit test your async code.
How to download source code?
1. Go to: https://www.oreilly.com/
2. Search the book title: Async Rust: Unleashing the Power of Fearless Concurrency
, sometime you may not get the results, please search the main title
3. Click the book title in the search results
3. Publisher resources
section, click Download Example Code
.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.