Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

discuss causal consistency trade-offs as well #3

Open
rkuhn opened this issue Nov 6, 2020 · 0 comments
Open

discuss causal consistency trade-offs as well #3

rkuhn opened this issue Nov 6, 2020 · 0 comments

Comments

@rkuhn
Copy link
Member

rkuhn commented Nov 6, 2020

In addition to the notes on strong consistency, we should also talk about the best that we can achieve without consensus: causal consistency.

This point was raised by Adrian Colyer:

On the one hand we know that causal consistency is the best we can do. On the other hand, I think it might be very easy to make a system that cannot achieve causal consistency. Consider the following local-first principle: “Always keep as much data local as possible, allowing only the minimum necessary to leave the device.” That sounds pretty good to me as a principle.

Now suppose at some point we release a summary sketch of the data on our local device - e.g., a count. Some user sees a total count across devices, and then wants to see the individual records. The total count was 7, but the user is only shown 3 records, because the local device that contributed a count of 4 is now disconnected. This user isn’t seeing a causally consistent view. They have unbounded eventual consistency instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant