From the course: .NET Microservices for Azure Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Communication between microservices - Azure Tutorial
From the course: .NET Microservices for Azure Developers
Communication between microservices
- [Presenter] In a microservices architecture, you'll often need to communicate between services. This can be achieved in two primary ways: synchronously or asynchronously. With a synchronous approach, the target service exposes an API, which the initiating service knows in advance. This communication generally occurs through the HTTP protocol, though it's not limited to it. One of the major advantages of this method is its simplicity. However, it has some drawbacks. Services are different processes. Meaning service A may call service B across the network, leading to potential scaling challenges. If service B is slow or unresponsive, service A will be delayed waiting for it. To mitigate this, you should implement resilience features in your application such as automatic retries in case of communication failures. If these failures persist, a circuit breaker pattern can be employed to indicate that a particular operation or functionality is temporarily unavailable. Remember, everything…
Contents
-
-
-
The importance of software architecture3m 52s
-
(Locked)
What is the monolithic architecture?2m 4s
-
(Locked)
Service-oriented architecture (SOA) overview1m 54s
-
(Locked)
Introduction to the microservices architectural style2m 1s
-
(Locked)
Core principles of microservices4m 9s
-
(Locked)
Microservices and Domain-Driven Design2m 4s
-
(Locked)
Communication between microservices2m 35s
-
-
-
-
-
-