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

[client] shard queues to reduce contention #106

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Mar 12, 2020

No description provided.

Copy link

@prognant prognant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in the extend I think it does what it aims to do. If testing shows the overall performance are not degraded then 👍

Comment on lines +111 to +175
qsize[shard].incrementAndGet();
processorWorkQueue[processQueue].offer(shard);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here if I'm correct we are dispatching message to a sharded queue, and those shards are unrelated to processQueue. Did we try 1:1 (or 1:N) mapping between process queues and message queues ? IMHO (unsure) it should (a little bit) ease the concurrency within the JVM.

@truthbk truthbk force-pushed the jaime/shardlocks branch from 8377a81 to f0f6bf8 Compare April 9, 2020 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants