Azure Event Grid is an eventing backplane that enables event-driven, reactive programming. It is deeply integrated with Azure services and can be integrated with third-party services. The event message contains the information you need to react to changes in services and applications. Event Grid is not a data pipeline, and does not deliver the actual object that was updated.
Azure Service Bus is well suited for traditional enterprise applications that require transactions, ordering, duplicate detection, and instantaneous consistency. Event Grid is designed for speed, scale, breadth, and low cost in a reactive model. It is well suited to server less architecture.+
Event Grid complements other Azure services like Logic Apps and Event Hubs. Event Grid triggers the logic app to begin its workflow. Event Hubs works with Event Grid by enabling you to react to events from Event Hubs Capture, and build data ingress and transformation pipelines.
Azure Event Grid is a highly scalable and fully-managed intelligent event routing service that allows uniform event consumption using a publish-subscribe model (also known as famous Pub-Sub Model).
You can use Azure Event Grid to react to relevant events across both Azure and non-Azure services in almost near-real time fashion.
Azure Event Grid is a highly scalable and very innovative offering from Microsoft Azure that makes an event a first-class object in Azure.
With Azure Event Grid, you can subscribe to any event that is happening across your Azure resources and you can react using serverless platforms like Functions or Logic Apps.
In addition to having built-in publishing support for events with services like Blob Storage and Resource Groups, Event Grid provides flexibility and allows you to create your own custom events to publish directly to the service.
In addition to having a wide range of Azure services with built-in handlers for events, like Functions, Logic Apps, and Azure Automation, Event Grid allows flexibility in handling events, supporting custom web hooks to publish events to any service, even 3rd-party services outside of Azure. This flexibility creates endless application options and makes Azure Event Grid a truly unique service in the public cloud.
As per Microsoft official documentation of Event Grid, whole concept of event grid can be easily explained using 5 Concepts and 8 Capabilities.
Image Courtesy : Microsoft Official Documentation.
There are five concepts in Azure Event Grid that let you get going:
- Events – What happened.
- Event sources/publishers – Where the event took place.
- Topics – The endpoint where publishers send events.
- Event subscriptions – The endpoint or built-in mechanism to route events, sometimes to multiple handlers. Subscriptions are also used by handlers to intelligently filter incoming events.
- Event handlers – The app or service reacting to the event.
Here are some of the key features of Azure Event Grid:
- Simplicity – Point and click to aim events from your Azure resource to any event handler or endpoint.
- Advanced filtering – Filter on event type or event publish path to ensure event handlers only receive relevant events.
- Fan-out – Subscribe multiple endpoints to the same event to send copies of the event to as many places as needed.
- Reliability – Utilize 24-hour retry with exponential backoff to ensure events are delivered.
- Pay-per-event – Pay only for the amount you use Event Grid.
- High throughput – Build high-volume workloads on Event Grid with support for millions of events per second.
- Built-in Events – Get up and running quickly with resource-defined built-in events.
- Custom Events – use Event Grid route, filter, and reliably deliver custom events in your app.
How much does Event Grid cost?
As per Microsoft officially, Azure Event Grid uses a pay-per-event pricing model, so you only pay for what you use.
Event Grid costs $0.60 per million operations ($0.30 during preview) and the first 100,000 operation per month are free. Operations are defined as event ingress, advanced match, delivery attempt, and management calls. More details can be found on the pricing page.
References : Microsoft Documentation and Microsoft Azure Announcements