This is a video about Distributed lock using zookeeper. It covers how with the help of zookeeper data modelling techniques, one can build distributed locks. All you need is to create ephemeral sequential nodes and then add watcher on the nodes. The sequential node with the smallest sequence number will be given the lock. Other nodes will wait for the changes and try to acquire lock ones it gets free.
Here is the github code in java and maven: [ Ссылка ]. This video is part of the playlist: [ Ссылка ]
Chapters:
00:00 Introduction
01:10 Problem statement
02:22 solution approach
08:50 Code
12:42 Demo
13:48 Conclusion
Distributed Lock using Zookeeper
Теги
apache zookeepersystem design interview questionsapache zookeeper explainedapache zookeeper tutorialapache zookeeper architectureapache zookeeper configurationsystem design gaurav senapache zookeeper usesapache zookeeper vs kubernetesapache zookeeper githubsystem design interview prepsystem design interview alex xusystem design playlistapache zookeeper use casesapache zookeeper mavensystem design interview tips