live-mutex
live-mutex copied to clipboard
if a client already has a lock on a key
If a certain client already has a lock on a key, e.g.:
client.lock('foo', ...);
client.lock('foo', ...);
then why send it to the broker? just queue it in the client until the client hears back from the broker
or perhaps queue things after 5 requests have already been sent out to broker