# Spanner簡介

Spanner為Google Cloud所提供的一個可全球存取的一項RDBMS的服務，並且為Google Managed的PaaS服務，提供使用者不需要多花心思在底層的基礎建設與管理。

## Spanner特色

* 全球服務規模：Spanner可提供跨區域(region)與資料中心的水平擴展能力，允許使用者擴充Spanner的node從一個node到數百、數千個node的規模。
* 完全由Google管理：由Google提供全自動化的管理機制，包含replication與各項維護作業，均無須使用者另外安排。
* 關連式資料庫語法：Spanner提供ANSI 2011的標準SQL查詢語法，並且具備RDBMS的特性，包含schema與ACID transaction能力。
* 多種程式語言支援：Spanner提供Client Library給Java, Go, Python, Node.js與更多其他語言的支持，並且支援JDBC的連線方式，供給更多知名的第三方工具連線。
* 交易一致性：Spanner具備完整的交易一致性功能，支援跨資料中心至跨國際地區的交易能力。
* 高可用性：透過Google的各項機制，包含資料的多份抄寫、存取node的保護，提供Spanner上儲存資料的高可用保證。

## Spanner與其他資料庫比較

Spanner有優於傳統RDBMS的高可用性與可儲存資料能力，並且具備優於NoSQL的交易能力保證，下面是Sapnner與SQL, NoSQL的資料庫之相關比較：

![RDBMS Compare](/files/-LAi71qXFZsLULw65uhT)

在上圖的比較之下，Spanner具備更全球的營運能力，提供高可用性、擴展性，並且對資料儲存進行多份複製。未來在建置以全球為方向的服務，將可以透過Spanner來做到更輕鬆的建置。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdgcloud-taipei.gitbook.io/google-cloud-platform-in-practice/google-cloud-shang-de-da-zi-liao-chu-li-fu-wu/cloud-spanner-beta/spanner-jian-jie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
