In this section, we will create a microservice that looks similar to other microservices we created in Chapter 9, Simple REST Definition and Requests Routing with Frameworks, but use an actors model internally to achieve full resource utilization.
To create a microservice using actix-web, you need to add both the actix and actix-web crates. First, we need to start the System actor that manages the runtime of other actors. Let's create a System instance and start an actix-web server with the necessary routes.