Soru

Zorluk: KolayImplement Azure Event Hubs Solutions

You are building a C# application to process events from an Azure Event Hub. The application needs to dynamically distribute partitions among multiple running instances of the consumer and checkpoint progress using Azure Blob Storage. Which class from the Azure.Messaging.EventHubs.Processor SDK library should you use as the main client to implement this consumer?

  1. EventProcessorClientCevap
  2. B
    BlobLeaseClient
  3. C
    QueueClient
  4. D
    ServiceBusProcessor

Cevap

Use the EventProcessorClient class from the Azure.Messaging.EventHubs.Processor library.
The EventProcessorClient class is the standard class in the Azure.Messaging.EventHubs.Processor library. It connects to an Event Hub, reads events, balances partitions dynamically among other active consumer instances, and checkpoints read positions using an Azure Blob Storage container.

Adım Adım Çözüm

1
Analyze the consumer requirements.
The application requires automatic partition load balancing across multiple instances and checkpoint storage.
This is a typical scalable consumer pattern for Azure Event Hubs.
2
Identify the standard SDK library class for this scenario.
The EventProcessorClient class is designed specifically to read events, manage partition ownership via blob leases, and write checkpoints.
It acts as the primary orchestrator for distributed partition consumption.

Anahtar Kavram

Azure Event Hubs consumer implementation with EventProcessorClient
Bu soruyu puanla