10 Understanding async Rust

This chapter covers

  • Introducing async programming concepts
  • Writing concurrent programs
  • Diving deeper into async Rust
  • Understanding futures
  • Implementing a custom future

In the previous chapters, we built a web service and a web application using Rust. We’ve used the Actix Web framework to handle the network communications, mostly submitting HTTP requests to the Actix web server from a single browser window or a command-line terminal. But have you thought about what happens when tens or hundreds of users send requests concurrently to register tutors or courses? Or, more broadly, how modern web servers handle tens of thousands of concurrent requests? Read on to find out.

In this part of the book, we will put our EzyTutors ...

Get Rust Servers, Services, and Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.