Explain it simpler
Event Grid is a notification service. When something happens in Azure, such as a file being uploaded, Event Grid sends a short note about it to whoever asked to be told. The place notes come from is called a topic. Azure services have built-in topics, called system topics, and you can create your own custom topics for your app. An event subscription is your request to be notified, plus where to send the note, like a function or a web address. Filters narrow what you receive: only certain kinds of events, only files in one folder, or only files ending in .pdf. It is like setting email rules so only the messages you care about land in your inbox.
At Northgate Legal Services, the new contract-search feature is supposed to embed every PDF that paralegals upload. Instead, your Azure Function bill doubled overnight and the logs are full of failures: the function is being triggered for scanned images, for files deleted from an archive container, and for log blobs written by a backup job. Jordan from the platform team asks whether you need to add a dozen if statements to the function. Is there a way to stop the unwanted events before they ever reach your code?
Azure Event Grid is a fully managed event routing service built for reactive programming. When something happens, such as a blob being created, a resource group changing or a Key Vault secret nearing expiry, Event Grid pushes a small notification, called an event, to whoever subscribed. Events describe that something happened; they are not commands or large payloads, and the publisher does not care who handles them or whether anyone does. A typical event is a few kilobytes of JSON that says what changed and where, and the handler fetches the actual data, such as the blob, if it needs it.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 9 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.