From the course: Azure Service Fabric for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Communication between Service Fabric services with HTTP

Communication between Service Fabric services with HTTP - Azure Tutorial

From the course: Azure Service Fabric for Developers

Start my 1-month free trial

Communication between Service Fabric services with HTTP

- [Instructor] In a microservices architecture, it's perfectly valid to invoke one service directly from another. You can do that through the HTTP protocol, and by exposing an API from the target microservice. To explain what we're going to do, let me show you the following diagram. At this moment, we have the search and product services. Now we're going to create a new customer service. And we're going to communicate from the search service to this new customer service by using the HTTP protocol. So let's get started. The first thing that I want to do is to right click here in the application and select the state list ASP. NET Core template and we're going to name this as customers, e-commerce dot API dot customers. And let's use these API template. Now, let's rename this, weather forecast controller. We're going to rename it to CustomersController. And let's get rid of this code. And let's change the, route to API…

Contents