Service Bus feature request: can we define the priority of the threads created by subscription client

JingJing Gu 1 Reputation point
2020-09-18T18:08:12.127+00:00

So we understand for each SubscriptionClient with MaxConcurrentCalls = n, it will create n threads to process messages.

My question is is there any way we can define the priority of the threads the client creates. By priority, I'm referring to Thread.Priority https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread.priority?view=netcore-3.1

Our use case is: we create multiple subscription clients that subscribe to different filters, and we'd like to make one of the subscription client to have a lower priority in resource consuming. Could SubscriptionClient expose such controllability to caller?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,531 Reputation points
    2020-09-21T05:59:22.463+00:00

    Hi @JingJing Gu

    As discussed right now there is no property on SubscriptionClient that expose the priority of the threads.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.