You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Mutex<> locks in ProducerClient which block threads when ProducerClient is shared accross threads.
Feature Description
ProducerClient makes liberal use of Mutex for thread safety, so there is no performance improvement if a single ProducerClient is shared across threads. We could instead implement connection pooling or thread local connections to improve multithreaded performance.
Use Case
Using ProducerClient as a singleton shared with many threads.
Alternatives
Don't use ProcuerClient as a singelton, guide customers to initialize a new one on each thread.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Feature Summary
Remove Mutex<> locks in ProducerClient which block threads when ProducerClient is shared accross threads.
Feature Description
ProducerClient makes liberal use of Mutex for thread safety, so there is no performance improvement if a single ProducerClient is shared across threads. We could instead implement connection pooling or thread local connections to improve multithreaded performance.
Use Case
Using ProducerClient as a singleton shared with many threads.
Alternatives
Don't use ProcuerClient as a singelton, guide customers to initialize a new one on each thread.
Additional Context
No response
The text was updated successfully, but these errors were encountered: