How to prevent that a lease is used twice in a distributed systems
I was wondering if it is possible to prevent that a lease is used twice. What is a lease? A lease is some sort of token that is given out to exactly one node at a time in a distributed setting. An example use case of a lease would be that only one node at the time can write to a database. What is a fencing token and why use it? With the lease as described above, we could run into problems. A node could stop (e.g. because of stop-the-world garbage collection) and still believe that his lease is valid, when in fact it is not. If we give each lease a fencing token (an incremental integer) the dat
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.