Microsoft Certified: Azure Developer Associate (AZ-204)Connect to and consume Azure services and third-party servicesMedium
A company is developing a new microservices application. They need to ensure that when a new order is placed, several independent actions are triggered, such as updating inventory, sending a confirmation email, and initiating shipping. These actions should be executed asynchronously and in parallel, without any direct coupling between the order placement service and the downstream services. Which Azure service is best suited to orchestrate these event-driven actions?
- AAzure Queue Storage
- BAzure Event Hubs
- CAzure Service Bus
- DAzure Event Grid
Show answer & explanationAnswer & explanation
Correct answer: D. Azure Event Grid
Azure Event Grid is a highly scalable, fully managed event routing service that enables building event-driven architectures. It allows a publisher (e.g., order placement service) to broadcast events to multiple subscribers (e.g., inventory, email, shipping services) without direct coupling, matching the requirement for independent, parallel actions.
Why the other options are wrong
- A. Azure Queue Storage provides simple message queues for point-to-point communication, not suitable for fan-out event distribution.
- B. Azure Event Hubs is for high-throughput data streaming and event ingestion, not for routing discrete events to multiple consumers.
- C. Azure Service Bus is a message broker for reliable messaging and workflow orchestration, typically for point-to-point or pub-sub with advanced features, but not primarily for event routing to many diverse handlers.
Azure Event Grid
A fully managed event routing service that simplifies event-driven application development by allowing you to react to relevant events across Azure services and custom sources.
- Enables reactive, event-driven architectures.
- Supports fan-out to multiple subscribers.
- Decouples event publishers from subscribers.
Memory trick: Event Grid is the 'traffic cop' for all your digital events.