Communication between web apps

Cha TheSurvivor 0 Reputation points
2023-10-06T14:25:31.32+00:00

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
    2023-10-06T15:44:11.0166667+00:00

    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 (SqlWork.com) 57,806 Reputation points
    2023-10-07T19:46:30.31+00:00

    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