Is Azure TopicClient threadsafe?

前端 未结 2 2554

I\'ve been dealing with a spate of Timeout\'s from TopicClient and I think it may be related to object lifetime and disposal.

I\'m using the TopicClient

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 03:29

    Just to add another confirmation from MS that this is thread safe, from Best Practices for performance improvements using Service Bus Messaging:

    You can safely use the QueueClient object for sending messages from concurrent asynchronous operations and multiple threads.

    They don't mention TopicClient explicitly, but would expect the same goes for TopicClient as for QueueClient

提交回复
热议问题