Search code examples
azureservicebus

Azure Service Bus - Session Processor vs Session Receiver Client?


I've been trying to find some guidance on the functional difference between ServiceBusProcessorClient and ServiceBusSessionReceiverAsyncClient.

From Azure SDK samples it seems that ProcessorClient is easier to implement, and it's still asynchronous.

Documentation doesn't seem to cover this.

Am I missing anything?


Solution

  • To continuously receive messages, one has to build a message pump. The SDK team has provided a default message pump that covers most of the scenarios but not all. For scenarios not covered by the default implementation or when customizations are required, ServiceBusSessionReceiver is a lower-level client that can be used to build the necessary functionality.