Asynchronous communication between microservices and client

247 Views Asked by At

We have an application based on micro services architecture with the following components

  1. Client Application : asp.net core mvc
  2. Api Gateway : Ocelot
  3. Service A: asp.net core web api

The Client sends request to Service using Restapi via API gateway. Then the service A performs some businesss operations, and generates data asynchronously

Now we want to send this generated data asynchronously to the client application and update the UI in real time. We tried one solution where we directly connect the service A and the client application via message broker : RabbitMQ without involving the API gateway. Does this violate the principle of abstraction between the services and the client in a micro services architecture?

0

There are 0 best solutions below