GCP Cloud Architecture (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Cloud Spanner & The TrueTime API: External Consistency at Global Scale.
senior LevelHTTP & REST APIs
In Simple Words: Cloud Spanner is the world's first globally distributed database providing both strict relational ACID semantics and non-blocking multi-region read/write scalability:
- The TrueTime API: Uses atomic clocks and GPS receivers integrated into Google datacenters to provide a bounded uncertainty time window ($\epsilon < 7\text{ms}$).
- External Consistency: Ensures that if a transaction commits, any subsequent transaction across the entire globe is guaranteed to observe the commit timestamp, solving the fundamental limitation of the CAP theorem!