Logo
Grokking the Advanced System Design Interview
Ask Author
Back to course home

0% completed

13. Fencing

Let's learn about fencing and its usage.

Background

In a leader-follower setup, when a leader fails, it is impossible to be sure that the leader has stopped working. For example, a slow network or a network partition can trigger a new leader election, even though the previous leader is still running and thinks it is still the active leader. Now, in this situation, if the system elects a new leader, how do we make sure that the old leader is not running and possibly issuing conflicting commands?

.....

.....

.....

Like the course? Get enrolled and start learning!