Example 2 – custom Azure Event Grid topic and event broadcast

This example will describe how we can work with a custom Event Grid topic to broadcast events from an event source to multiple event listener endpoints. In this example, we will use the Azure Functions code given in the previous section to publish custom events to an Event Grid topic endpoint.

The basic event flow architecture is described in the following diagram. The event flow details are listed here:

  • The web app sends an event to Azure Event Grid.
  • Azure Event Grid has three different subscriptions, Logic Apps, Azure Functions, and Webhooks, to read the event details.
  • Logic Apps will write the incoming event to Service Bus, which will again be polled by the client application. ...

Get Serverless Integration Design Patterns with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.