A company is building an application that needs to respond to events from various Azure services (e.g., new file uploaded to Blob Storage, a resource created in Azure Resource Manager) and custom application events. The responses involve triggering Azure Functions or Logic Apps. The solution must be highly scalable, serverless, and allow for flexible routing of events to different handlers based on event type. Which Azure service should be used to manage these events?
- AAzure SignalR Service
- BAzure Event Grid
- CAzure Event Hubs
- DAzure Service Bus Queues
Show answer & explanationAnswer & explanation
Correct answer: B. Azure Event Grid
Azure Event Grid is a fully managed, serverless, event routing service that enables you to easily build event-driven architectures. It integrates with numerous Azure services as event sources and can send events to various handlers like Azure Functions and Logic Apps, supporting flexible filtering and routing based on event types. Service Bus Queues are for point-to-point messaging. Event Hubs are for high-throughput streaming. SignalR is for real-time web functionality.
Why the other options are wrong
- A. Azure SignalR Service is used to add real-time web functionality to applications, enabling bidirectional communication over HTTP, which is unrelated to event routing between services.
- C. Azure Event Hubs is a high-throughput data streaming platform for ingesting millions of events per second, typically for analytics, not primarily for event routing to various handlers based on specific event types.
- D. Azure Service Bus Queues are designed for reliable point-to-point messaging, not for routing events from diverse sources to multiple handlers based on event type.
Azure Event Grid
Azure Event Grid is a fully managed event routing service that enables event-driven architectures. It allows you to react to events from various Azure services and custom sources by routing them to different handlers.
- Serverless and highly scalable.
- Supports events from many Azure services and custom sources.
- Enables flexible filtering and routing of events.
- Delivers events to various handlers (e.g., Functions, Logic Apps, Webhooks).
Memory trick: An event grid catches all news and sends it to the interested parties.