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

Avoid contention on producer mutex on critical path #286

Merged
merged 3 commits into from
Jun 18, 2020

Conversation

merlimat
Copy link
Contributor

Motivation

Multiple go-routines sharing a single producers are experiencing contention on the partitioned producer mutex that we acquire while using the router.

The mutex is there to protect the updates on the list of partitions, but we can optimize that away.

@merlimat merlimat added this to the 0.2.0 milestone Jun 18, 2020
@merlimat merlimat self-assigned this Jun 18, 2020
@merlimat merlimat merged commit 861d7af into apache:master Jun 18, 2020
@merlimat merlimat deleted the producer-contention branch June 18, 2020 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants