Exploring Azure Event Grid
Azure Event Grid implements a reactive programming model where a specific algorithm is triggered depending on the event processed on Event Grid. For instance, let’s say that a blob stored on Azure Storage was modified (the file changed its access tier from Cool to Archive) and the appropriate event was triggered by Event Grid because it monitors modifications for a specific Azure storage account. The Azure function that monitors events from Event Grid received the event and processed the blob according to the business logic (sending an email to the administrator). Access tiers were introduced in Chapter 6, Developing Solutions That Use Azure Blob Storage.
This example of monitoring blobs uses a pure reactive programming model. The Azure function is not hammering the blob to pull the available changes. It waits to get triggered by Azure Event Grid and reacts depending on the logic. The solution schema is shown in the following diagram: