注: この問題は、同じシナリオを提示する一連の問題の一部です。一連の問題にはそれぞれ、定められた目標を満たす可能性のある独自の解答が含まれています。問題セットによっては、複数の正解が存在する場合もあれば、正解がない場合もあります。
このセクションの質問に回答した後は、その質問に戻ることはできません。そのため、これらの質問はレビュー画面に表示されません。
Azure Blob Storage や Azure Resource Manager などの複数の Azure サービスからのイベントにほぼリアルタイムで反応する必要があるアプリケーションを開発しています。
アプリケーションは次の要件を満たしている必要があります。
* 手動介入なしで大量のイベントを処理します。
* イベント タイプまたはリソース パターンに基づいて、アプリケーションに関連する特定のイベントのみを受信します。
* 処理アプリケーションが一時的に使用できない場合でも、イベントが失われないようにします。
* インフラストラクチャを管理せずにイベントを処理するには、Azure Functions を使用します。
* イベントのルーティングと処理に必要なカスタム コードの量を最小限にします。
解決策を開発する必要があります。
解決策:Azure Service Bus 名前空間をデプロイします。Azure サービスを構成して、Service Bus にイベントを送信します。イベントを処理するために、Service Bus トリガーを備えた Azure Functions を実装します。Service Bus セッションとメッセージ遅延を使用して、イベントの順序と信頼性を管理します。
ソリューションは目標を満たしていますか?
正解:B
* Set up Azure Event Hubs to receive events from the Azure services. Develop a custom application using Azure Functions with Event Hub triggers to process the events. Implement custom filtering logic within the functions to select relevant events.
For handling a high volume of events with complicated logic in conjunction with Azure Functions, Azure Event Hubs is generally the best choice. While Azure Service Bus and Azure Logic Apps can also handle events, Event Hubs is specifically designed for high-throughput, real-time data ingestion and processing, making it well-suited for scenarios involving large volumes of events.
Logic Apps, while powerful for workflow automation, might not be as efficient for handling the sheer scale of events that Event Hubs can manage.
Reference:
https://cosmin-vladutu.medium.com/azure-event-grid-vs-azure-service-bus-vs-event-hubs-when-to-use-each-12900bb32ce8