0
0
Azurecloud~10 mins

Event Grid for event routing in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Event Grid for event routing
Event Source emits event
Event Grid receives event
Event Grid matches event to subscriptions
Event Grid routes event to subscribers
Subscribers receive and process event
Events are sent from a source to Event Grid, which then routes them to the right subscribers based on subscriptions.
Execution Sample
Azure
1. Event Source sends event
2. Event Grid receives event
3. Event Grid checks subscriptions
4. Event Grid routes event
5. Subscriber processes event
This sequence shows how an event flows from the source through Event Grid to subscribers.
Process Table
StepActionEvent Grid StateRouting DecisionSubscriber Action
1Event Source emits eventWaiting for eventNo routing yetNo action
2Event Grid receives eventEvent receivedCheck subscriptionsNo action
3Event Grid matches event to subscriptionsEvent matchedRoute to subscriber A and BNo action
4Event Grid routes eventRouting in progressSend event to subscriber A and BNo action
5Subscribers receive eventEvent deliveredRouting completeSubscriber A and B process event
6EndIdleNo routingWaiting for next event
💡 Event delivered to all matching subscribers; routing complete.
Status Tracker
VariableStartAfter Step 2After Step 3After Step 4After Step 5Final
Event Grid StateWaiting for eventEvent receivedEvent matchedRouting in progressEvent deliveredIdle
Routing DecisionNoneNoneRoute to subscriber A and BSend event to subscribersRouting completeNone
Subscriber ActionNoneNoneNoneNoneProcess eventWaiting
Key Moments - 3 Insights
Why does Event Grid check subscriptions after receiving an event?
Event Grid needs to know which subscribers want this event type to route it correctly, as shown in step 3 of the execution_table.
What happens if no subscriptions match the event?
Event Grid will not route the event to any subscriber, so no subscriber action occurs. This is implied by the routing decision in step 3.
When do subscribers actually process the event?
Subscribers process the event only after Event Grid routes and delivers it, as shown in step 5 of the execution_table.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the Event Grid State at step 3?
AEvent received
BEvent matched
CRouting in progress
DWaiting for event
💡 Hint
Check the 'Event Grid State' column at step 3 in the execution_table.
At which step do subscribers start processing the event?
AStep 2
BStep 3
CStep 5
DStep 4
💡 Hint
Look at the 'Subscriber Action' column in the execution_table.
If no subscriptions match the event, what would the routing decision be at step 3?
ANo routing
BSend event to subscribers
CRoute to subscriber A and B
DEvent delivered
💡 Hint
Refer to the 'Routing Decision' column at step 3 in the execution_table.
Concept Snapshot
Event Grid routes events from sources to subscribers.
It receives events, matches subscriptions, then routes events.
Subscribers process events only after delivery.
If no subscription matches, event is not routed.
This enables decoupled, scalable event-driven apps.
Full Transcript
Event Grid is a service that routes events from sources to subscribers. When an event source emits an event, Event Grid receives it and checks which subscribers have registered for that event type. It then routes the event to those subscribers. Subscribers process the event only after receiving it from Event Grid. If no subscribers match, the event is not routed. This flow allows applications to react to events in a scalable and decoupled way.