Skip to content

Commit 5b26f2f

Browse files
Merge pull request #301880 from EldertGrootenboer/patch-8
Python SDK does not allow for thread safe concurrency
2 parents 020fe42 + 8d0fa50 commit 5b26f2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/service-bus-messaging/service-bus-performance-improvements.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ The following note applies to all SDKs:
113113

114114
> [!NOTE]
115115
> Establishing a connection is an expensive operation that you can avoid by reusing the same factory or client objects for multiple operations. You can safely use these client objects for concurrent asynchronous operations and from multiple threads.
116+
> This applies to all SDKs except the Python client. For Python, [locks must be used](/python/api/overview/azure/servicebus-readme?view=azure-python#thread-safety&preserve-view=true) when using threads and concurrent asynchronous operations.
116117
117118
## Concurrent operations
118119
Operations such as send, receive, delete, and so on, take some time. This time includes the time that the Service Bus service takes to process the operation and the latency of the request and the response. To increase the number of operations per time, operations must execute concurrently.

0 commit comments

Comments
 (0)