2 ms·
Is a replica not a cache of sorts?
by nicoburns 5y ago
Is a replica not a cache of sorts?
- bastawhiz 5y agoNot really. Replicas are constantly replicating live data from your leader. All of it, in its raw form. A query against a replica isn't inherently faster than a query against the leader, the data is likely just a bit old. A cache stores the output of an operation to avoid needing to perform the same operation again. You deliberately put data into a cache to avoid needing to create that data a second time—it won't magically appear there.