Split Brain - When Servers Forget to Talk

Published on October 11, 2025

What is a Distributed System?

In a distributed system, you have multiple servers that work together but appear as one system. To manage tasks efficiently, these servers often select one server as the leader, while the others act as followers.

What Causes Split-Brain?

Let’s imagine 5 servers: 1 leader and 4 followers.

The followers don’t accept writes directly, unless using special configurations. They mainly copy the leader’s data to stay in sync.

Let’s assume a network break or delay happens.

At this point, we technically have two leaders (1 and 2), but split-brain hasn’t occurred yet. Split-brain only happens when both leaders start accepting changes independently, causing conflicting data.

Imagine a wallet system where users can add money for charity.

Everything is fine so far. Suddenly, the network breaks.

Now we have two leaders: Server 1 and Server 2.

Users continue adding money.

Case 1:

Case 2:

Some time later, the network is restored.

This conflicting state is the real split-brain problem.

How to Solve Split-Brain

One common solution is quorum-based majority.

Only the majority side is allowed to accept writes.

With this rule, only one leader can make changes, preventing split-brain.