Use case – Logging microservices
In this section, we will look at a microservice-based system that logs data about purchases relating to various destinations in our WWTravelClub use case. In particular, we will design microservices that take care of computing daily revenues per location. Here, we're assuming that these microservices receive data from other subsystems hosted in the same Azure Service Fabric application. More specifically, each purchase log message is composed of the location name, the overall package cost, and the date and time of the purchase.
As a first step, let's ensure that the Service Fabric emulator that we mentioned in the Technical requirements section of this chapter has been installed and is running on your development machine. Now, we need to switch it so that it runs 5 nodes: right-click on the small Service Fabric cluster icon you have in your Windows notification area, and, in the context menu that opens, select Switch Cluster Mode...