Skip to content

Explore possibility of sharding the keyspace for reducing lock scope #93

@the123saurav

Description

@the123saurav

Issue

Currently we are taking a global lock for every request so as to guarantee the order of execution for commands.

Possible Solve

CM uses segments under the hood just like ConcurrentHashMap for parallel access.
If we can use the same hashing mechanism and just take a lock on the segment, we can guarantee ordering for same key.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions