New PostgreSQL interface for Spanner - access Spanner’s unmatched scale and 99.999% availability from familiar PostgreSQL. Learn more.

Jump to

Cloud Spanner

Fully managed relational database with unlimited scale, strong consistency, and up to 99.999% availability.

  • action/check_circle_24px Created with Sketch.

    Get all the benefits of relational semantics and SQL with unlimited scale

  • action/check_circle_24px Created with Sketch.

    Start at any size and scale with no limits as your needs grow

  • action/check_circle_24px Created with Sketch.

    Enjoy high availability with zero scheduled downtime and online schema changes

  • action/check_circle_24px Created with Sketch.

    Deliver high-performance transactions with strong consistency across regions and continents

  • action/check_circle_24px Created with Sketch.

    Focus on innovation, eliminating manual tasks with capabilities like automatic sharding

Benefits

Scale as needed with no limits

Globally distributed, ACID-compliant database that automatically handles replicas, sharding, and transaction processing, so you can quickly scale to meet any usage pattern and ensure success of your products.

Make your database highly available anywhere

Cloud Spanner is built on Google’s dedicated network and battle tested by Google services used by billions. It offers up to 99.999% availability with zero downtime for planned maintenance and schema changes.

Do fewer thankless tasks with a simpler experience

IT admins and DBAs are inundated with operating databases. With Cloud Spanner, creating or scaling a globally replicated database now takes a handful of clicks and reduces your cost of maintaining databases.

Key features

Key features

Relational database, built for scale

Everything you would expect from a relational database—schemas, SQL queries, and ACID transactions—battle tested and ready to scale globally.

99.999% availability

Cloud Spanner delivers industry-leading 99.999% availability for multi-regional instances—10x less downtime than four nines—and provides transparent, synchronous replication across region and multi-region configurations.

Automatic sharding

Cloud Spanner optimizes performance by automatically sharding the data based on request load and size of the data. As a result, you can spend less time worrying about how to scale your database and instead focus on scaling your business.

View all features

Documentation

Documentation

Use Case
Use cases where Spanner is transforming businesses

Learn how Spanner powers business-critical applications in retail, financial services, gaming, media and entertainment, technology, healthcare and more.

Tutorial
Cloud Spanner: Qwik Start

Learn how to create a Cloud Spanner instance, database, and table; add a schema, write and modify data, and run a query.

APIs & Libraries
Spanner Emulator

Spanner Emulator lets application developers do correctness testing when developing an application. The emulator runs in an offline environment.

Google Cloud Basics
What makes Spanner tick?

Take a deep dive into how Cloud Spanner works and how it serves as the foundation for a lot of other Google products and services.

Best Practice
SQL best practices

Learn best practices for constructing SQL statements to help Cloud Spanner find efficient execution plans.

Google Cloud Basics
Data types

Find an overview of each data type, including simple data types such as integers, as well as more complex types such as ARRAY and STRUCT.

Google Cloud Basics
Instances

Learn the concepts of Cloud Spanner instances, instance configurations, and nodes. See the differences and tradeoffs between regional and multi-region instances.

Google Cloud Basics
Transactions

See the general properties and semantics of transactions in Cloud Spanner as well as the read-write, read-only, and Partitioned DML transaction interfaces. 

Architecture
Concepts

Learn about Spanner concepts from replication to audit logging, as well as advanced concepts such as sessions.

Use cases

Use cases

Use case
Develop global multiplayer games with Spanner

Spanner is a distributed, globally scalable SQL database service that decouples compute from storage, which makes it possible to scale processing resources separately from storage. This distributed scaling nature of Spanner’s architecture makes it an ideal solution for unpredictable workloads such as online games. Learn how to get started developing global multiplayer games using Spanner, in this whitepaper.

gaming architectural diagram

All features

Google Cloud Next '21

See the latest innovations in Google Cloud databases and hear from other customers such as Home Depot how they are building transformative applications.

Key takeaways from session

  • check_circle_filled_black_24dp (1)

    Learn how transformative capabilities across Cloud Spanner, Cloud Bigtable, and Firestore power next-generation innovative applications

  • check_circle_filled_black_24dp (1)

    Hear from Hari Ramamurthy, Technology Fellow, The Home Depot

  • check_circle_filled_black_24dp (1)

    Learn about the latest product innovations across the portfolio, highlighting how Google Cloud databases can help you deliver new customer experiences faster than ever before

  • check_circle_filled_black_24dp (1)

    Hear from Kumar Menon, Senior VP, Data Fabric & Decision Science Tech, Equifax

  • check_circle_filled_black_24dp (1)

    Learn how Cloud Spanner and BigQuery take advantage of ground-breaking innovations such as Borg and Colossus to do amazing things not possible elsewhere

  • check_circle_filled_black_24dp (1)

    Follow the life of data as it is born in Cloud Spanner generated from transactions and analyzed in BigQuery for real-time insights

All features

All features

Relational database, built for scale Everything you would expect from a relational database—schemas, SQL queries, and ACID transactions—battle-tested and ready to scale for both reads and writes globally.
99.999% availability Industry-leading 99.999% availability for multi-regional instances with TrueTime atomic clocks and transparent, synchronous replication. 100% online schema changes and maintenance while serving traffic with zero downtime.
Automatic sharding Optimize performance by automatically sharding the data based on request load and data size. As a result, you can scale your database without disruptive re-architecture, and focus on growing your business.
Fully managed Easy deployment at every stage and for any size database. Synchronous replication and maintenance are automatic and built in.
Strong transactional consistency Purpose-built for industry-leading external consistency without compromising on scalability or availability.
Granular instance sizing (Preview) Start with Spanner with a granular instance for only $65/month and scale it based on your needs without downtime and with no need for re-architecting.This feature is available in Preview in the Google Cloud Console. Learn more.
PostgreSQL interface (Preview) Combine the scalability and reliability of Spanner with the familiarity and portability of PostgreSQL. Use the skills and tools that your teams already know, future-proofing your investment for peace of mind. Learn more
Regional and multi-regional configurations No matter where your users may be, apps backed by Spanner can read and write up-to-date strongly consistent data globally. Additionally, when running a multi-region instance, your database is protected against a regional failure and offers industry-leading 99.999% availability.
Federated queries with BigQuery Query data in Spanner from BigQuery in real time without moving or copying the data, bridging the gap between operational data and analytics and creating a unified data life cycle.
Built on Google Cloud network Cloud Spanner is built on Google’s dedicated network that provides low-latency, security, and reliability for serving users across the globe.
Enterprise-grade security and controls Customer-managed encryption keys (CMEK), data-layer encryption, IAM integration for access and controls, and comprehensive audit logging. Support for VPC-SC, Access Transparency and Access Approval.
Backup and Restore, point-in-time recovery (PITR) Backup your database to store a consistent copy of data and restore on demand. PITR provides continuous data protection with the ability to recover your past data to a microsecond granularity.
Rich application and tool support Meet development teams where they are with native client libraries for Java/JDBC, Go, Python, C#, Node.js, PHP, Ruby and C++ as well as the most popular ORMs, including Hibernate and Entity Framework.
Real-time change data capture and replication (Preview) Synchronize data across heterogeneous databases, storage systems, and applications reliably and with minimal latency with Datastream. Seamlessly deliver change streams from Oracle and MySQL databases into Spanner for up-to-date information.
Observability Monitor performance of Spanner databases with metrics and stats. Analyze usage patterns in Spanner databases with Key Visualizer, an interactive monitoring tool.

Pricing

Pricing

Pricing for Cloud Spanner is simple and predictable. You are only charged for the number of nodes in your instance, the amount of storage that your tables and secondary indexes use (not pre-provisioned), and the amount of network bandwidth used. Note that there is no additional charge for replication. See the pricing guide for more details.

Feature Pricing
Node (including all replications)

Regional pricing (USD): From $0.90 per node per hr

Multi-region pricing (USD): From $3.00 per node per hr

Storage

Regional pricing (USD): From $0.30 per GB per month

Multi-region pricing (USD): From $0.50 per GB per month

Network ingress Free
Network egress Cross-region and internet egress rates may apply

If you pay in a currency other than USD, the prices listed in your currency on Google Cloud SKUs apply.

Partners

Partners

Take advantage of our growing partner ecosystem to help you maximize value from Cloud Spanner.