In our Drone Pizza Delivery application we have built 2 Microservices – CommandCenter and ProcessCenter. You may have notice there are some classes that are used in both these Microservices which makes the code redundant. We can take these common classes and codes to a new Class Library project and create a NuGet package of it.
(more…)
In this tutorial we will understand how Asynchronous Communication between Microservices work. In our Pizza Drone Delivery application we have 2 Microservices – CommandCenter and ProcessCenter. They communicate with one another synchronously using HttpClient class.
(more…)
In a Microservices architecture there are lots of URL where request to the microservices is made. Therefore, API Gateway like Ocelot comes to be very handy. An API Gateway transforms the Incoming HTTP Request from the client and forward it to an appropriate Microservice. Ocelot has a JSON configuration file that states the upstream and downstream routes.
(more…)