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.
Issue
Currently we are taking a
global lockfor 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.