Home > Software engineering >  Maintaining Right Order with Event Grid, Functions & Service Bus
Maintaining Right Order with Event Grid, Functions & Service Bus

Time:10-12

Our event workflow works like this.

Publishing System --> Event Grid --> Azure Function (Durable) --> Service Bus --> Consuming App

Now for a new requirement, we need to maintain the order of events/messages, so based on whatever was received first by Event Grid, consuming app should receive it in the same order.

What can we do in Event Grid, Function and Service Bus so this order is maintained?

Note: Azure Function is used in the middle to fetch the details about the event by calling an API.

CodePudding user response:

Event Grid doesn't guarantee ordering https://docs.microsoft.com/en-us/azure/event-grid/delivery-and-retry, however from Service Bus you can use sessions to receive messages in order from the Consuming App https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-sessions.

  • Related