Communication between web apps

Cha TheSurvivor 0 Reputation points

I'm hosting two apps services (REST APIs) on Azure and I want to make them communicate.

My client is sending an HTTP request to create an order using app service A and I want that app service A send the ceated order to app service B in order to process it following another logic.

This is the only communication that will be between app service A and app service B.

I was planning to use an Azure Event Grid topic to set the communication between them so that app service A publishes and app service B subscribes.

Is it reasonnable or is it overkill ? What do you think ?

Thank you in advance for your answers

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
321 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,006 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Johan Smarius 390 Reputation points MVP

    Of course, you can use events/messages for this scenario. If this is a very simple scenario you could have service A call Service B directly using an HTTP call. This direct calling will result in a tight coupling of both services, so you should consider if you can afford this kind of coupling. If not go for a message based solution.

  2. Bruce ( 57,806 Reputation points

    It depends on if the client needs to know if B’s processing completed. If B’s can be done in the background, then the grid is a simple queue and makes sense.

    0 comments No comments