In this chapter, we covered creating a microservice using the Actix framework. We discovered how to create and configure an App instance, which describes all routes and middleware to be used. After that, we implemented all handlers that return a Future instance. In all handlers, we also use ClientRequest to send a request to another microservice and return a response back to the client using an asynchronous approach with futures. Finally, we explored how to create our own Middleware for the actix-web crate.
In the next chapter, we'll examine the scalable microservices architecture, and look at how to achieve loose coupling of microservices. We'll also consider the use of message brokers to provide a flexible and manageable way to exchange messages between parts of a large application.