Cloud Intermediate
Azure Event Grid — Event-Driven Architecture¶
AzureEvent GridEventsPub/Sub 5 min read
Event Grid topics, subscriptions, filtering, dead-lettering and CloudEvents.
Concepts¶
- Sources — Azure services or custom topics
- Subscriptions — filtering + routing to handlers
- Handlers — Functions, Logic Apps, webhooks, Service Bus
Custom Topic¶
az eventgrid topic create --name my-events -g myRG -l westeurope
az eventgrid event-subscription create \
--name handler --source-resource-id "/subscriptions/.../topics/my-events" \
--endpoint "https://my-func.azurewebsites.net/api/handle" \
--advanced-filter data.amount NumberGreaterThan 100
CloudEvents¶
Prefer the CloudEvents schema — a CNCF standard, portable across providers.
Summary¶
Event Grid is the glue of event-driven architecture on Azure. Low latency, at-least-once delivery.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.