Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Multithreaded Performance of azure_messaging_eventhubs ProducerClient #2243

Open
devinjdangelo opened this issue Feb 26, 2025 · 0 comments

Comments

@devinjdangelo
Copy link
Member

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

@github-project-automation github-project-automation bot moved this to Untriaged in Azure SDK Rust Feb 26, 2025
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 26, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants