Skip to content

Avoid contention on producer mutex on critical path - #286

Merged
merlimat merged 3 commits into
apache:masterfrom
merlimat:producer-contention
Jun 18, 2020
Merged

merlimat merged 3 commits into
apache:masterfrom
merlimat:producer-contention

Conversation

@merlimat

Copy link
Copy Markdown
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