2 ms·
Firestore does provide global consistency, so the following quote is incorrect: > In Cloud Firestore, the data on the client are loaded from the database at di
by rockwotj 4y ago
Firestore does provide global consistency, so the following quote is incorrect:
> In Cloud Firestore, the data on the client are loaded from the database at different points in time. Even if you listen for realtime updates, results from separate queries will not remain in sync. This creates consistency anomalies and bugs in your app.
Here is a link to the protocol documentation that the clients use to support it: https://github.com/googleapis/googleapis/blob/d0b394f188e8c308438e5610d77ba51bb4bcb053/google/firestore/v1/firestore.proto#L852 https://github.com/googleapis/googleapis/blob/d0b394f188e8c3...
I'd link to the client implementation but it's quite involved.
There are ways to opt of of this and get stale cached data if you're offline, but you're explicitly opting in at that point
- alexcole 4y agoThanks for the pointer! I'll update the article to be more accurate!