Skip to content

Commit cf687d6

Browse files
Python SDK does not allow for thread safe concurrency
1 parent f3db198 commit cf687d6

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]([url](/python/api/overview/azure/servicebus-readme?view=azure-python#thread-safety)) 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)