Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Explore Azure Event Grid

  • Azure Event Grid is an eventing backplane that enables event-driven, reactive programming.

  • It uses the publish-subscribe model.

    • Publishers emit events, but have no expectation about how the events are handled.

    • Subscribers decide on which events they want to handle.

    • It is strongly recommended to use available messaging products and services that support a publish-subscribe model, rather than building your own.

      • In Azure, consider using Service Bus, Event Hubs or Event Grid.

      • Other technologies that can be used for pub/sub messaging include Redis, RabbitMQ, and Apache Kafka.

  • First, select the Azure resource you would like to subscribe to, and then give the event handler or WebHook endpoint to send the event to.

  • Event Grid has built-in support for events coming from Azure services, like storage blobs and resource groups.

  • Event Grid also has support for your own events, using custom topics.

...

  • you can manually validate the subscription by sending a GET request to the validation URL.

  • The event subscription stays in a pending state until validated.

  • The validation Url uses port 553. If your firewall rules block port 553 then rules may need to be updated for successful manual handshake.

...

Azure Service Bus to Event Grid integration overview

  • Azure Service Bus to Event Grid integration overview

  • Service Bus can now emit events to Event Grid when there are messages in a queue or a subscription when no receivers are present.

  • You can create Event Grid subscriptions to your Service Bus namespaces, listen to these events, and then react to the events by starting a receiver.

  • With this feature, you can use Service Bus in reactive programming models.

  • The key scenario of this feature is that Service Bus queues or subscriptions with a low volume of messages do not need to have a receiver that polls for messages continuously.

To enable the feature, you need the following items:

  • A Service Bus Premium namespace with at least one Service Bus queue or a Service Bus topic with at least one subscription.

  • Contributor access to the Service Bus namespace.

  • An Event Grid subscription for the Service Bus namespace.

    • This subscription receives a notification from Event Grid that there are messages to be picked up.

    • Typical subscribers could be the Logic Apps feature of Azure App Service, Azure Functions, or a webhook contacting a web app.

    • The subscriber then processes the messages.

...

Microsoft.EventGrid eventSubscriptions Template

Code Block
 "destination": {
      "endpointType": "string"
      // For remaining properties, see EventSubscriptionDestination objects
    },