Azure Event Grid and reactive architecture
When working with multiple services in the cloud, often, you need to have a centralized service that is responsible for routing events to a different endpoint. This makes the exchange of data a piece of cake—you do not have to maintain different URLs of APIs, as you can leverage a common event schema and custom routing configuration that is based on, for example, the event type. In Azure, such a service is called Azure Event Grid—a serverless event gateway, which is one of the newer cloud components available. With a pay-as-you-go pricing model, you can quickly build a reactive architecture that inverts the communication between your services and makes them passive. In this chapter, you will learn how to work with Event Grid and integrate it with other Azure components.
Reactive architecture
To get started, let’s consider the architecture shown in the following diagram:
Figure 11.1 –...