Say HR edits the leave policy in SharePoint at 10:00. Unused leave that carries over to next year goes from 5 days to 10. At 10:05 an employee asks the company assistant how many days they can carry over. The assistant answers 5, with a citation that opens the right document.
Nothing was broken. Every part of the system did what it was built to do, and the answer was still wrong. To see why, follow the change through each place the policy is stored.
One change, three copies
The policy lives in three places. SharePoint is the source. A search index holds a copy that the assistant retrieves from, and an indexer refreshes it every 15 minutes. An answer cache keeps recent answers for 45 minutes so that repeated questions are fast.
At 10:00 only SharePoint has the new number. The index catches up at 10:15, when the indexer next runs. The cache takes longer, because it stored the answer given at 10:05, which was built from the old index, and it keeps serving that answer until 10:50. Anyone who asks the same question at 10:30 gets 5 days, even though the index has been right for a quarter of an hour.
By 10:50 every copy agrees. That is eventual consistency. The copies disagree for a while after a change, and they all arrive at the same value if no new change comes in. The alternative is strong consistency, where every read sees the latest write. It costs a wait on every write and refused requests when the network between copies fails, which is the choice the CAP theorem describes.
Every copy runs behind by its own amount
Each copy trails the source, and each has its own delay with its own cause.
- A read replica trails by its replication lag, which is usually under a second and grows when writes are heavy.
- A cache trails by the lifetime of its entries, unless something clears them when the source changes.
- A search index trails by its refresh or indexer interval.
- A stream consumer trails by however far it has fallen behind. If it stops, the delay grows and nothing reports a failure.
- A vector index trails by the whole ingestion pipeline, which extracts, chunks and embeds before anything is searchable.
Delays also add up. In the story the cache did not start counting at 10:00. It started at 10:05 with a value that was already old, so the worst case for the reader is the index delay plus the cache lifetime. That is up to an hour here, from two settings that each looked harmless.
Three questions for any read
You can apply the same reasoning to any screen or answer in any system by asking three questions.
- Which copy answered this read? It is rarely the source.
- How far behind can that copy be? Add up every copy between the write and the read.
- What happens if the answer is old?
The third question decides how much work the first two deserve. An hour-old leave policy is an inconvenience that a visible document date would soften.
When an old answer does harm
Go back to 10:00 and change the edit. This time HR removes an employee's access to a confidential document. The index still holds the old permissions until 10:15. If search decides who can see results from its own copy, that person can still find and read the document for 15 minutes after access was taken away. The leave policy converged and no harm was done. Here the harm happens inside the window, and convergence does not undo it.
Three kinds of read should not accept a lagging copy.
- Permission checks. Check access against the source when the query runs, or give removals a faster path than ordinary updates and measure it.
- Balances, stock and anything that can only be spent once. Two requests that both read the old value will both succeed.
- Uniqueness. Two people can claim the same name if the check reads a copy that has not caught up.
Most systems end up mixed. Search and recommendations read from copies, and the permission check and the ledger read from the source. You make that choice for each read path.
Make the delay a number
For the reads that can accept a delay, state how much. "The index is within 15 minutes of the source" is a target you can measure and alert on, which "eventually" never is.
- Measure the delay directly. Compare the time of the newest change at the source with the newest change visible in the copy, and alert when the gap passes the target.
- Clear or bypass the cache when the source changes. The story's longest delay came from a cache that nothing could clear. The retrieval cache that served stale policies is a real case of this.
- Let people see their own changes. After someone saves, read from the source for that person for a short time. Azure Cosmos DB calls this session consistency, and it is the default level for an account.
- Show the age of what you return. A document date lets the reader judge an answer that would otherwise look current. A stale answer is a wrong answer covers this for retrieval.
In Azure AI Search
The index in the story behaves like an Azure AI Search index that an indexer fills on a schedule. The shortest schedule the service allows is 5 minutes, so an index fed this way can always be at least that far behind. When a read needs less than that, push each change into the index as the source changes. Microsoft's guidance says the push model is the only option when you need low latency.
Deletes need a separate look, because they depend on the source. The SharePoint indexer, which is still in preview, removes a deleted file from the index on its next run. The Blob Storage indexer does not track deletions at all unless a soft-delete policy has been in place since its first run. Without one, a deleted file stays searchable and no interval puts a limit on how long. We chose Azure AI Search for retrieval covers why we use it.
In Elasticsearch
Elasticsearch has the same delay on a shorter scale. A document you index is not returned by a search until the next refresh, which by default happens about once a second. So a test that writes a document and searches for it at once will fail some of the time. Ask the write to wait with refresh=wait_for, which holds the request until the next refresh without forcing one.
Pick one answer or screen that people rely on and draw its timeline. Put the source on the first row and every copy below it, with the delay each one adds. Then ask the third question about the total. The eventual consistency glossary entry has the short version.
Terms in this piece
About this explainer
- Format
- Explainer
- Level
- Practitioner
- Read
- 4 min read
- Published
- Nov 17, 2026
- Disciplines
Short mental models: one idea, why it matters, what to do about it.
More on these topics
Explainer · · 2 min read
Your vector index does not know who is allowed to read it
Embeddings carry no access control lists. Ownership, permissions, freshness and lineage have to be designed before anything is indexed.
Explainer · · 2 min read
A stale answer is a wrong answer
When the world changes faster than your index, freshness stops being a nice-to-have and becomes part of correctness.
Discussion