# Azure Event Grid

> Chapter 73 of the Courseiva AZ-900 curriculum — https://courseiva.com/learn/az-900/azure-event-grid

**Official objective:** 2.2 — Azure Architecture Services

## Introduction

This chapter covers Azure Event Grid, an event routing service. AZ-900 tests this under objective 2.2.

## An Event Bulletin Board

An office bulletin board notifies everyone of events (meeting, deadline change). Azure Event Grid works similarly: when something happens (file uploaded, resource created), Event Grid notifies subscribers interested in that event.

## Core explanation

### What Event Grid does
Event Grid routes events from Azure services to event handlers (subscriptions), decoupling the source of an event from its consumers. When something happens (storage blob created, resource deployed), Event Grid notifies all subscribers.

### Event sources and handlers
Event sources can be Azure services; handlers can be Logic Apps, Functions, webhooks, or other services.

### Publish-subscribe pattern
Event Grid implements a publish-subscribe pattern: publishers emit events; subscribers listen for ones they care about.

## Real-world context

When a file is uploaded to storage, Event Grid notifies an Azure Function to process it, decoupling upload logic from processing.

## Exam focus

Objective 2.2 expects understanding of Event Grid as an event routing service, not deep event architecture knowledge.

Common wrong answer: confusing Event Grid with Event Hubs — Event Grid routes events between services; Event Hubs ingests high-volume event streams.

Stable terms: **Event Grid**, **event routing**. Memory trick: Event Grid = event-driven decoupling, publish-subscribe pattern.

## Step by step

1. **Identify event sources** — Azure services generating events (storage, resource groups) are configured.
2. **Create event subscriptions** — Services subscribe to events they're interested in.
3. **Route to handlers** — When events occur, Event Grid routes them to subscribed handlers.

## Common misconceptions

- **Misconception:** Event Grid and Event Hubs do the same thing. **Reality:** Event Grid routes events between services; Event Hubs is for high-volume event streaming.

## Key takeaways

- Event Grid routes events from sources to subscribers.
- Implements publish-subscribe pattern for event-driven architecture.
- Decouples event sources from handlers.

## FAQ

**What is Azure Event Grid?**

It's an event routing service that routes events from sources to subscribers, implementing a publish-subscribe pattern for event-driven architecture.

---

Interactive version with quiz and diagrams: https://courseiva.com/learn/az-900/azure-event-grid
