Monotonic Reads - How Asynchronous Replication Creates Wormholes
Source: https://arpitbhayani.me/blogs/monotonic-reads Date: 2021-10-03
Explore how asynchronous database replication creates "wormholes" in data consistency and how to fix it with monotonic reads.
Asynchronous replication leads to a fascinating situation where it feels like we are going through a wormhole traveling back and forth in time. In this essay, we understand why this happens and the consequences and devise a quick solution to address it.
Through the wormhole
As per Wikipedia, a wormhole can be visualized as a tunnel with two ends at different points in spacetime (i.e., different locations, different points in time, or both), allowing us to traverse back and forth in time again and again. So, where exactly is a wormhole in the context of a distributed datastore?

