Event Grid Topic
Azure Event Grid is a service provided by Microsoft Azure
that enables developers to build event-based architectures for their
applications. An Event Grid topic is a resource in Azure that represents a
logical container for publishing and subscribing to events.
When a publisher sends an event to an Event Grid topic, the
event is processed by the Event Grid service, which then forwards the event to
any subscribers that have registered for that particular event type. Subscribers
can be any Azure service, custom code running in Azure, or an external web hook
endpoint.
A topic can have multiple event subscriptions, each of which
can be filtered based on specific criteria, such as the event type, source, or
payload. This allows subscribers to only receive events that are relevant to
their particular use case.
In summary, an Azure Event Grid topic is a logical container for publishing and subscribing to events, which enables developers to build event-driven architectures for their applications.
Create topic in Event Grid
- Go to azure portal
- Search for Event Grid Topics
- Click on Event Grid Topics
- You will get the following screen
- Click on Add you will get the following screen
- Fill all the information and click on Create
- After
successful deployment it is listed in the list of Event grid topics
Event Grid Topic Subscription
- For creating Topic Subscription click on particular event grid topic after that click on Event Subscription
- After click on Event Subscription you will get the page
- Enter the name of Event Subscription. You can also add filter to event type for that click on “Add Event Type” a text box is enabled where you can enter the name of event which is sued in filtering event in the same topic. Here I added the test event filter.
- On
particular event subscription you can bind different end points.
There are different end point type like Azure Function, Web Hook, storage Queues, Event Hubs, Hybrid Connections, Service Bus Queue, Service Bus Topic, Partner Destination. You can select any type of Endpoint Type depends on your requirements. After that click on “Create”, event subscription will be created. After successful creation of Event Subscription, the end point will be triggered when particular event occurs at Event Grid.
No comments:
Post a Comment