Hinted handoff explained in plain terms is the story of a neighbour who takes in a parcel for someone who is out. The central question is what a distributed database should do with a write meant for a server that is temporarily down, and the answer is to hand it to another server with a note saying who it is really for, then deliver it properly when the missing server returns.
Without hinted handoff, a write to a downed replica either fails or is lost, and the system must choose between refusing work and losing data. With it, the write succeeds, the data is held safely nearby, and the intended replica catches up as soon as it is back, which is why the technique is a quiet workhorse of highly available databases.
This article explains how hinted handoff works, how it differs from other repair mechanisms, and where its limits lie.
Key takeaways
- Hinted handoff stores a write on a substitute node when the intended replica is down.
- The substitute holds a hint recording which node the write belongs to.
- When the downed node returns, the substitute hands the writes over.
- It keeps writes succeeding during short outages instead of failing.
- It is temporary storage, not a replacement for proper replication.
What hinted handoff is
In a replicated database, each piece of data is assigned to a set of nodes, usually three. When a client writes, the coordinator sends the write to all three, and once enough of them confirm, the write is acknowledged. The trouble starts when one of the three is down, because the write that was meant for it has nowhere to go.
Hinted handoff solves this by sending the write to a different node instead, one that is healthy but is not normally responsible for that data. The substitute stores the write together with a hint, a small record noting the intended recipient, and it keeps the data until the original node returns.
The idea comes from Dynamo, Amazon’s pioneering distributed store, and it spread from there to Cassandra, Riak, and others. It is a simple idea, but it changes the behaviour of a system under failure from refusing writes to absorbing them, which is a large difference for a service that must stay up.
How a hinted handoff works
The process has three stages. First, the coordinator detects that the intended replica is unreachable, usually because a connection attempt times out. Instead of failing the write, it picks a substitute node, often the next healthy node on the ring, and sends the write there with a hint attached.
Second, the substitute stores the write like any other, but marks it as hinted, so that it knows this data does not belong to it permanently. The write is now durable on the substitute, which means it will survive a restart, and the coordinator can acknowledge the write to the client.
Third, the substitute watches for the intended node to return. When it does, the substitute sends the stored writes across, the intended node applies them, and the substitute deletes its copies. The handoff is complete, and the data is back where it belongs, with no operator involved.
There is a subtlety in how long the substitute waits. If the missing node stays down for a long time, the substitute cannot hold its writes forever, so hints expire after a configurable window, often a few hours. After that, the writes are dropped and the node must catch up by another route, usually a full repair.
Hinted handoff and write availability
The main benefit is availability. A database that refuses writes whenever a replica is down will refuse them often, because in a large cluster something is almost always down. Hinted handoff lets writes succeed through short outages, which is the difference between a system that feels reliable and one that feels fragile.
It also smooths recovery. A node that returns after a short absence receives exactly the writes it missed, in order, and is back in step quickly. Without the handoff, the returning node would need a heavier repair process to find out what it missed, which takes longer and loads the cluster more.
The cost is storage and complexity on the substitute. A node that holds hints for a neighbour is doing extra work, storing data it does not own, and if several neighbours go down at once, one substitute can accumulate a large backlog. Our guide to consistent hashing explains how data is assigned to nodes on the ring, which decides who holds hints for whom.

Hinted handoff compared with other repair
Hinted handoff is one of three repair mechanisms in a typical eventually consistent database, and each covers a different gap. Read repair fixes replicas that a read happens to touch, anti-entropy compares replicas in the background, and hinted handoff catches the writes that a downed node missed entirely.
The table below sets out the main contrasts.
| Aspect | Hinted handoff | Read repair | Anti-entropy |
|---|---|---|---|
| When it runs | During a write to a downed node | During a read that finds stale data | Continuously, in the background |
| What it fixes | Writes the node missed | Replicas the read touched | Any divergence, given time |
| Needs the node to return | Yes, within the hint window | No, fixes whoever answers | No, compares all replicas |
| Cost | Extra storage on substitutes | None, piggybacks on reads | Background comparison work |
| Best for | Short outages | Hot data users read often | Cold data nobody touches |
The practical result is that the three mechanisms cover each other’s blind spots, and a system that runs all three is far more robust than one that relies on any single one.
Where hinted handoff is used
Cassandra uses hinted handoff as a core feature, storing hints locally on the coordinator when a replica is unavailable, and replaying them when the replica returns. Operators can tune the hint window, and the documentation warns that a node down for longer than the window will need a full repair instead.
Dynamo, where the idea began, used it alongside sloppy quorums, which let a write succeed even when the intended replicas were unreachable by sending it to whichever nodes were healthy. The combination meant that a shopping cart could accept writes through almost any failure, which was the design goal.
Riak used hinted handoff in the same way, with the added detail that hints were stored on disk, so that a substitute that restarted would not lose the writes it was holding for a neighbour. That durability is what turns the mechanism from a convenience into a guarantee.
Modern cloud stores use the same pattern under different names. Any system that holds a write on behalf of an unavailable node and replays it later is doing hinted handoff, whatever the marketing calls it, and the design questions are always the same: how long to hold, how much to hold, and what happens when the window expires. Our guide to the gossip protocol explains how nodes in such systems learn that a peer has returned, and our guide to eventual consistency explains the promise that makes all of this acceptable.
Strengths and limits
The greatest strength of hinted handoff is that it turns a failure into a delay. A write that would have been refused is accepted, a node that would have needed a heavy repair gets a light one, and the user never notices that anything went wrong, which is the experience a highly available system is supposed to deliver.
It is also a strength that the mechanism is local and simple. No central coordinator is needed, each substitute manages its own hints, and the work scales naturally as the cluster grows, because every node holds hints only for its neighbours.
The limits are real, though. Hints expire, so a node that is down for a long time still needs a full repair, and a substitute that holds hints for many missing neighbours can run out of disk or fall behind on its own work. Hinted handoff also does nothing for a node that is down permanently, because there is nobody to hand the writes to when it never returns.
Hinted handoff checklist
- Enable hinted handoff so short outages do not refuse writes.
- Set the hint window long enough for a normal restart, short enough to bound storage.
- Store hints durably so a substitute restart does not lose them.
- Monitor hint backlog; a growing pile means a node has been down too long.
- Run a full repair for any node down beyond the hint window.
- Watch substitute disk use when several neighbours are down at once.
- Replay hints in order so the returning node applies writes correctly.
- Test a node returning after a short outage before it happens for real.
- Remember that hinted handoff is temporary; it is not a substitute for repair.
Frequently asked questions
What is hinted handoff in simple terms?
It is a neighbour holding a write for a downed replica, with a note saying who it belongs to, and delivering it when that replica comes back online.
What is a hint?
It is the small record attached to a stored write that names the intended replica, so the substitute knows where the data must eventually go.
How long are hints kept?
For a configurable window, often a few hours. After the window expires the hints are dropped and the returning node must catch up by full repair instead.
What happens if the substitute crashes too?
Hints stored durably survive a restart, but if the substitute loses its disk, the writes it held are gone and the returning node needs a full repair.
Is hinted handoff the same as replication?
No. Replication keeps permanent copies on the intended nodes, while hinted handoff is temporary storage on a substitute until the intended node returns.
Does hinted handoff work for long outages?
Only up to the hint window. Beyond that, the returning node needs anti-entropy repair to find everything it missed.
The bottom line
Hinted handoff explained in one line is this: when the owner is out, leave the parcel with a neighbour, and trust the neighbour to hand it over.
It is a small mechanism with a large effect on availability, and it is one of the reasons large databases can lose a server on a Tuesday and have nobody notice by Wednesday.
This article is general information about how hinted handoff works, not advice about configuring a particular database.







