Cloud Spanner

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

New customers get $300 in free credits to spend on Google Cloud during the first 90 days. All customers get free usage (up to monthly limits) of select products including BigQuery, GKE & more.

Try it free
  • 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

Customers

Customers

Google Cloud helps LLBean deliver an omnichannel retail experience.
Google Cloud helps LLBean deliver an omnichannel retail experience.
Read the story

Story highlights

  • Solved database scaling challenges with Cloud Spanner

  • Improved customer experience with faster page loads

  • Modernized by moving from on-premises to Google Cloud

Partner

Documentation

Documentation

Tutorial
Cloud Spanner: Quick 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.

Architecture
Global meta-data and scalable data backend

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

Best Practice
SQL best practices

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
Data types

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.

All features

All features

Relational database, built for scale Everything you would expect from a relational database—schemas, SQL queries, and ACID transactions—battled-tested and ready to scale globally.
99.999% availability For global businesses, reliability is expected but maintaining that reliability while also rapidly scaling can be a challenge. Cloud Spanner delivers industry-leading 99.999% availability for multi-regional instances 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.
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 external, strong, global transactional consistency.
Regional and multi-regional configurations No matter where your users may be, apps backed by Cloud Spanner can read and write up-to-date strongly consistent data globally Additionally, when running a multi-region instance, your database is able to survive a regional failure, and offers industry-leading 99.999% availability.
Online schema changes with no downtime Cloud Spanner users can make a schema change, whether it’s adding a column or adding an index, while serving traffic with zero downtime. Hence you now have the flexibility to adapt your database to your business needs without compromising on the availability of your application.
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 Data-layer encryption, IAM integration for access and controls, and comprehensive audit logging.
Backup and restore On-demand backup and restore for data protection.
Multi-language support Client libraries in C#, C++, Go, Java, Node.js, PHP, Python, and Ruby. JDBC drivers for connectivity with popular third-party tools.

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.