Back to Databases

Cloud Spanner

gcp

Enterprise-grade, globally distributed relational database with unlimited scale and 99.999% availability.

DATABASES
Google Cloud Platform

Enterprise-grade, globally distributed relational database with unlimited scale and 99.999% availability.

Click any section above to jump directly to it

What is Cloud Spanner?

Google Cloud Spanner is the world's first fully managed relational database service that combines the benefits of relational database structure (schemas, ACID transactions, SQL) with non-relational horizontal scale. Spanner uses atomic clocks and GPS receivers in Google data centers (TrueTime API) to achieve external consistency globally without locking overhead, offering an unprecedented 99.999% availability SLA.

Decision Guide: When to Choose This Service

When to Use Cloud Spanner

Use Cloud Spanner for massive global relational workloads (financial ledgers, global gaming inventory, large-scale supply chain) requiring strict ACID transactions, relational schemas, high-throughput writes, and five-nines (99.999%) availability with zero downtime maintenance.

When NOT to Use (Recommended Alternatives)

Do NOT use Cloud Spanner for small-scale applications that fit easily within Cloud SQL (<64 TB) where the minimum hourly cost of a Spanner instance is not economically justified.

Core Architectural Pillars

TrueTime API

Google's synchronized hardware atomic clocks providing bounded global time uncertainty for lock-free consistent distributed transactions.

Global ACID Transactions

Distributed multi-region read-write transactions with strong serializable consistency.

Spanner Processing Units (PUs)

Granular scaling unit (100 PUs = 0.1 node, allowing low-cost entry points).

Interleaved Tables

Physically co-locate parent and child table rows together on the same storage split for ultra-fast relational joins without cross-network hops.

Dialects

Supports GoogleSQL and PostgreSQL dialects natively.