Async Rust
308 pages
English
PDF
4.5

Async Rust

Async Rust

Author:

Year:

Summary:

Introduction

The book "Async Rust" (2024) by Maxwell Flitton and Caroline Morton is a modern practical guide to asynchronous programming in the Rust language. In the era of high-load systems and microservices, the ability to write efficient asynchronous code is becoming critically important. The authors, who have extensive experience in Rust development, offer the reader a structured path from the basics to advanced techniques for working with asynchrony.

What the book is about

The book covers a full range of topics related to asynchronous programming in Rust. Starting with an explanation of the concepts of Future, async/await, and executor, the authors gradually move on to practical aspects: working with the Tokio library, creating asynchronous web servers, managing threads and channels, and error handling in an asynchronous context. Special attention is paid to performance and safety, which is the hallmark of Rust.

Who this book is for

The book is intended for developers already familiar with the basics of Rust (syntax, ownership, borrowing). It will be useful for:

  • Backend developers creating high-load services;
  • Systems programmers transitioning to Rust;
  • Developers wanting to deepen their understanding of asynchronous models;
  • Students and researchers studying modern programming paradigms.

What the reader will learn

After reading the book, the reader will be able to:

  • Understand the internal workings of Future and executor;
  • Effectively use async/await and Tokio;
  • Create asynchronous web servers and clients;
  • Manage concurrency through channels and mutexes;
  • Handle errors in asynchronous code;
  • Profile and optimize asynchronous applications;
  • Avoid common pitfalls (e.g., blocking calls in an async context).

Strengths

The main advantage of the book is its practical focus. Each chapter contains code examples that can be immediately run and modified. The authors not only explain the theory but also show how to avoid common mistakes. The chapter on testing asynchronous code deserves special mention — a rare and valuable topic. The book is written in a lively language, with complex concepts explained through analogies and step-by-step breakdowns.

Who it is recommended for

We recommend this book to anyone who has already mastered basic Rust and wants to move on to creating real, high-performance applications. It will be an excellent addition to the official documentation and will help systematize knowledge. For Rust beginners, the book may seem challenging, but with basic preparation, it will be understandable and useful.

Recommendations