Summary
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access