Soru

Zorluk: OrtaImplement Azure Event Hubs Solutions

You are developing a C# transaction ingestion service that processes events from an Azure Event Hub. The service is built using the Azure.Messaging.EventHubs.Processor library and runs on multiple host instances. During performance testing, you encounter lease conflict exceptions when host instances scale up. You need to ensure that the checkpoint store is configured correctly and that partition ownership is managed properly. Which of the following describes the correct storage configuration and client behavior for implementing checkpointing with the EventProcessorClient?

  1. A
    Use Azure Blob Storage as the checkpoint store, and manually implement custom lease acquisition and renewal logic using the BlobLeaseClient class within the event handler.
  2. B
    Use Azure Queue Storage as the checkpoint store, allowing the EventProcessorClient to use queue message visibility timeouts to hold partition leases.
  3. Use Azure Blob Storage as the checkpoint store, allowing the EventProcessorClient to automatically manage partition ownership by creating and acquiring leases on metadata blobs.Cevap
  4. D
    Use Azure Service Bus Queues as the checkpoint store, relying on the ServiceBusSessionProcessor to automatically renew session-based partition locks.

Cevap

Use Azure Blob Storage as the checkpoint store, allowing the EventProcessorClient to automatically manage partition ownership by creating and acquiring leases on metadata blobs.
The correct answer represents the native behavior of the EventProcessorClient. When provided with a BlobContainerClient, the processor client manages partition load balancing and checkpoints internally by creating metadata blobs inside the blob container and acquiring leases on them. There is no need for developers to manually manage these leases.

Adım Adım Çözüm

1
Identify the storage service required by the .NET SDK EventProcessorClient.
Azure Blob Storage is identified as the required storage service because it supports blob leasing mechanisms used for load balancing and checkpointing.
The EventProcessorClient class is designed specifically to integrate with Azure Blob Storage via a BlobContainerClient.
2
Determine how partition ownership and load balancing are coordinated.
The EventProcessorClient automatically creates metadata blobs in the container and acquires leases on them to represent partition ownership.
This automated leasing avoids partition processing conflicts when multiple consumer instances run concurrently.
3
Select the option that reflects automated lease management using Blob Storage.
The option stating that EventProcessorClient automatically manages partition ownership via leases on metadata blobs in Azure Blob Storage is selected.
It correctly identifies the service and highlights that leasing is handled transparently by the client rather than manually.

Anahtar Kavram

Partition checkpointing and load balancing automation in Azure Event Hubs using Azure Blob Storage leases.
Bu soruyu puanla