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

maybe concurrent-map degenerates into common map #155

Open
cold-bin opened this issue May 15, 2024 · 0 comments
Open

maybe concurrent-map degenerates into common map #155

cold-bin opened this issue May 15, 2024 · 0 comments

Comments

@cold-bin
Copy link

Because it is a single-node map, the value of the SHARD_COUNT cannot be particularly large, so it is easy to randomly transfer a large number of keys to a slot, which means that the shard lock map function may be invalid

Sharding can be achieved using a prioritized queue, and then each time the map with the smallest queue length is taken and put into the element

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

No branches or pull requests

1 participant