Book description
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 ways to use Rust in embedded systems, and 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 Rust
By 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.
Publisher resources
Table of contents
- Brief Table of Contents (Not Yet Final)
- 1. Introduction to Async
- 2. Basic Async Rust
- 3. Building Our Own Async Runtime
- 4. Integrating Networking Into Our Own Async Runtime
- 5. Coroutines
- 6. Reactive Programming
- 7. Customising Tokio
- 8. The Actor Model
- 9. Design Patterns
- 10. Building an Async Server With no Dependencies
- About the Authors
Product information
- Title: Async Rust
- Author(s):
- Release date: December 2024
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098149093
You might also like
book
Hands-On Concurrency with Rust
Get to grips with modern software demands by learning the effective uses of Rust's powerful memory …
book
Hands-On Microservices with Rust
A comprehensive guide in developing and deploying high performance microservices with Rust Key Features Start your …
video
Creating a Chat Server with async Rust and Tokio
Building a chat server is a great way to learn the Tokio library because a chat …
book
Code Like a Pro in Rust
Get ready to code like a pro in Rust with insider techniques used by Rust veterans! …