what if someone else use a different lock_key to perform the same ciritical section operation? I mean somehow lock_key should be same for all the operations+service combination
It's your code why would you keep 2 choices of lock_key in your code ? Also just for reference if you use different lock_key(assuming lock_key_2) you will get a different lock not the one you got on (lock_key_1) Also it's not a real mutex, it's just a key value pair in redis.
Thanks for locking and unlocking
Great content! Very informative!
Thx for the video and channel
what if someone else use a different lock_key to perform the same ciritical section operation?
I mean somehow lock_key should be same for all the operations+service combination
It's your code why would you keep 2 choices of lock_key in your code ?
Also just for reference if you use different lock_key(assuming lock_key_2) you will get a different lock not the one you got on (lock_key_1)
Also it's not a real mutex, it's just a key value pair in redis.
Sir please upload complete distributed systems videos