Causal consistency explained in plain terms is about a promise that feels modest but turns out to be exactly what most applications need. The central question is whether a distributed database must show every user the same order of events, or whether it is enough to keep cause before effect, and the answer is that cause before effect is usually enough, and far cheaper to provide.
If one user posts a question and another answers it, nobody should ever see the answer before the question. If two users post unrelated messages at the same time, nobody cares which one appears first. Causal consistency draws the line exactly there: related events stay ordered, unrelated events may appear in any order.
This article explains what causal consistency is, how it compares with the stronger and weaker guarantees around it, and where it is used.
Key takeaways
- Causal consistency keeps cause before effect, everywhere, for everyone.
- Unrelated events may appear in different orders on different replicas.
- It is stronger than eventual consistency and weaker than linearizability.
- It matches how people actually read conversations and comment threads.
- It can be provided while staying available during a network partition.
What causal consistency is
Causality is the relationship between events where one depends on another. A reply depends on the message it answers, a comment depends on the post it comments on, and a write that a user makes after reading a value depends on that read. These dependencies form a partial order, a web of links that says which events must come before which.
Causal consistency requires that every replica respects that partial order. If event A caused event B, then every replica that shows both must show A before B. If two events are independent, with no causal link between them, replicas are free to show them in either order, and different users may see them differently.
The classic example is a social feed. When Maya posts a photo and Liam comments on it, every user must see the photo before the comment, or the comment makes no sense. But when Maya and Liam post unrelated photos at the same time, it does not matter which appears first, and different users seeing them in different orders harms nobody.
How causality is tracked
The usual mechanism is a version stamp that records what a process had seen. When a user reads a value and then writes a new one, the write carries a record of the read, so that any replica applying the write knows it must have applied the earlier value first. The stamp is often a vector clock, which keeps one counter per process and can tell whether two events are causally linked or independent.
Sessions make the idea concrete. A single user moving through an application generates a chain of reads and writes, each depending on the last, and causal consistency guarantees that the chain stays in order for that user, even as they move between servers. A user who updates their profile and then checks it will always see their own update, which is the read-your-writes guarantee that sits inside causal consistency.
The tracking is the hard part. Every write must carry enough history to establish its dependencies, and replicas must delay applying a write until they have applied everything it depends on. That delay is usually tiny, because dependencies are normally local and recent, but it is real, and it is the price of the guarantee. Our guide to vector clocks explains the stamping scheme that makes this tracking possible.
Causal consistency on the ladder of guarantees
Consistency models form a ladder, from the weakest promise to the strongest. Eventual consistency sits at the bottom, promising only that replicas will agree someday, with no ordering at all in the meantime. Linearizability sits at the top, promising that every operation appears to happen at a single instant in a single global order. Causal consistency sits in the middle, and for many applications it is the sweet spot.
The middle position matters because of the CAP theorem. Linearizability cannot be provided while staying available during a network partition, so systems that need to keep working through partitions must give up the strongest guarantee. Causal consistency is the strongest guarantee that can still be provided during a partition, which makes it the best available choice for systems that must never refuse a write.
That property has a name: it is the strongest consistency model that remains available under partitions. Researchers proved it in the early 2010s, and it turned causal consistency from a theoretical curiosity into a practical target for real databases. Our guide to eventual consistency explains the weaker promise below it, and our guide to linearizability explains the stronger promise above it.

Causal consistency compared with other models
The differences between the models are best seen in what they allow a user to observe. Under eventual consistency, a user can see an answer before its question, which is confusing. Under causal consistency, that cannot happen. Under linearizability, every user sees the same order of everything, which causal consistency does not promise.
The table below sets out the main contrasts.
| Aspect | Causal consistency | Eventual consistency | Linearizability |
|---|---|---|---|
| Cause before effect | Always | Not guaranteed | Always |
| Unrelated events ordered | No, may differ by replica | No | Yes, one global order |
| Available during partition | Yes | Yes | No |
| Cost to provide | Moderate, track dependencies | Low, no ordering work | High, needs coordination |
| Best for | Feeds, chats, collaboration | Caches, analytics | Money, inventory, locks |
The practical result is that causal consistency fits applications where users read each other’s work, while eventual consistency fits data nobody reads in order, and linearizability fits data where a wrong order costs money.
Where causal consistency is used
Collaborative editing is the clearest example. When two people edit a shared document, each person’s edits build on what they have seen, and causal consistency ensures that nobody sees an edit before the text it changes. CRDTs, the data structures behind many collaborative editors, are often built on causal ordering, and they merge concurrent edits safely.
Social feeds and messaging apps rely on it too. A comment thread that shows replies before the messages they answer is broken in a way users notice immediately, and causal consistency is what prevents it, without the cost of a global order that nobody needs.
Databases such as AntidoteDB and the causal mode of MongoDB offer causal consistency as a named guarantee, and research systems such as COPS and Eiger showed that it could be provided at scale across data centres. The pattern is always the same: track dependencies, delay writes until their causes have arrived, and let independent writes flow freely.
Strengths and limits
The greatest strength of causal consistency is that it matches human intuition. People expect cause to come before effect, and they are forgiving about the order of unrelated things, so a system that guarantees exactly that feels correct to its users in a way that eventual consistency does not.
It is also a strength that the guarantee survives partitions. A system can keep accepting writes on both sides of a split and still promise that cause precedes effect, which is the strongest promise available when the network is broken, and it is why causal consistency is popular in geo-distributed systems.
The limits are real, though. Tracking dependencies costs metadata on every write, delaying a write until its causes arrive adds latency when dependencies are slow, and the model says nothing about the order of unrelated events, which means two users can still disagree about which of two independent posts came first. Applications that need a single global order must look higher up the ladder.
Causal consistency checklist
- Track what each write depends on with a version stamp or vector clock.
- Delay applying a write until all its dependencies have arrived.
- Guarantee read-your-writes within a session as a minimum.
- Use it for feeds, chats, and collaboration, where order matters to readers.
- Do not expect a single global order; unrelated events may differ by replica.
- Budget metadata overhead for the dependency tracking.
- Test the behaviour during a partition, not just in normal operation.
- Pair it with CRDTs when concurrent edits must merge cleanly.
- Choose linearizability instead when money or inventory is at stake.
Frequently asked questions
What is causal consistency in simple terms?
It is the promise that if one event caused another, every replica shows the cause before the effect, while unrelated events may appear in any order.
How is causal consistency different from eventual consistency?
Eventual consistency promises only that replicas will agree someday, while causal consistency also promises that cause always precedes effect, so an answer never appears before its question.
Can causal consistency be provided during a network partition?
Yes, it is the strongest consistency model that remains available during a partition, which is why geo-distributed systems favour it.
What is the difference between causal consistency and linearizability?
Linearizability orders every operation in a single global sequence, while causal consistency orders only events linked by cause, leaving unrelated events unordered.
How do systems track causality?
Usually with vector clocks or similar version stamps that record what a process had seen before each write, so replicas know which writes must come first.
When is causal consistency not enough?
When the application needs a single agreed order for unrelated events, such as taking the last item in stock, where only linearizability will do.
The bottom line
Causal consistency explained in one line is this: keep cause before effect, and let the rest sort itself out.
It is the guarantee that matches how people actually use shared systems, strong enough to feel correct and cheap enough to survive a broken network.
This article is general information about how causal consistency works, not advice about choosing a consistency model for a particular system.







