Spanner documentation
Spanner is a fully managed, mission-critical database service that brings together relational, graph, key-value, and search. It offers transactional consistency at global scale, automatic, synchronous replication for high availability, and support for two SQL dialects: GoogleSQL (ANSI 2011 with extensions) and PostgreSQL.
Not sure what database option is right for you? Learn more about our database services.
Start your proof of concept with $300 in free credit
- Get access to Gemini 2.0 Flash Thinking
- Free monthly usage of popular products, including AI APIs and BigQuery
- No automatic charges, no commitment
Keep exploring with 20+ always-free products
Access 20+ free products for common use cases, including AI APIs, VMs, data warehouses, and more.
Documentation resources
Guides
Resources
Related resources
Google Cloud Fundamentals: Core Infrastructure
These lectures, demos, and hands-on labs give you an overview of Google Cloud products and services so that you can learn the value of Google Cloud and how to incorporate cloud-based solutions into your business strategies.
Architecting with Google Cloud: Design and Process
This course features a combination of lectures, design activities, and hands-on labs to show you how to use proven design patterns on Google Cloud to build highly reliable and efficient solutions and operate deployments that are highly available and cost-effective.
Spanner with Spring Boot
Learn how to connect to Cloud SQL from Cloud Run
Architecting disaster recovery for locality-restricted workloads
Discusses how to use Google Cloud to architect for disaster recovery (DR) to meet location-specific requirements.
Continuous data replication to Spanner using Striim
Demonstrates migrating a MySQL database to Spanner using Striim.
Database migration: Concepts and principles (Part 1)
Introduces concepts, principles, terminology, and architecture of near-zero downtime database migrations to Google Cloud.
Creating a change log with JDBC using the commit timestamp feature of Spanner
Shows how to use the commit timestamp feature to track the date and time when changes are made to your database records.
Best practices for using Spanner as a gaming database
Describes best practices for using Spanner as the primary backend database for game state storage.
Getting started with Spanner in Python
First steps using Spanner with Python
Getting started with Spanner in Node.js
First steps using Spanner with Nde.js
Getting started with Spanner in Java
First steps using Spanner with Java
Getting started with Spanner in PHP
First steps using Spanner with PHP
Getting started with Spanner in C#
First steps using Spanner with C#
Getting started with Spanner in Ruby
First steps using Spanner with Ruby
Getting started with Spanner in C++
First steps using Spanner with C++