Cloud Spanner Rohit Gupta, Solutions Engineer @rohitforcloud - - PowerPoint PPT Presentation

cloud spanner
SMART_READER_LITE
LIVE PREVIEW

Cloud Spanner Rohit Gupta, Solutions Engineer @rohitforcloud - - PowerPoint PPT Presentation

Cloud Spanner Rohit Gupta, Solutions Engineer @rohitforcloud Todays goals Provide a brief history of Spanner at Google Provide an explanation of Cloud Spanner Do a demo! Built on the same infrastructure that powers Google Always


slide-1
SLIDE 1

Cloud Spanner

Rohit Gupta, Solutions Engineer @rohitforcloud

slide-2
SLIDE 2

Today’s goals

Provide a brief history of Spanner at Google Provide an explanation of Cloud Spanner Do a demo!

slide-3
SLIDE 3

Built on the same infrastructure that powers Google

Fastest, most reliable network Super-flexible compute Always available storage Superior economics Robust, easy to use Big Data solutions

slide-4
SLIDE 4
slide-5
SLIDE 5 SJC (JP, HK, SG) 2013

GCP Regions

Edge points of presence (>100) Leased and owned fiber # # Future region and number of zones Current region and number of zones 3 3 2 3 3 3 3 3 2 4 3 3 2 Frankfurt Singapore S Carolina N Virginia Belgium London Taiwan Mumbai Sydney Oregon Iowa São Paulo Finland Tokyo Montreal California Netherlands 3 3 3 3
slide-6
SLIDE 6

Background

Why build Spanner?

slide-7
SLIDE 7

Technical infrastructure at Google

It’s 2005...

slide-8
SLIDE 8

Google’s needs

Horizontally Scaling Database ACID Transactions with global consistency No downtime!

slide-9
SLIDE 9

Overview

What is Cloud Spanner?

slide-10
SLIDE 10
slide-11
SLIDE 11

What is Cloud Spanner?

Traditional relational semantics: schemas, ACID transactions, SQL Fully managed, database service with global scale Automatic, synchronous replication within and across regions for availability Battle-tested within Google for 5+ yrs (AdWords, GooglePlay)

Google’s mission-critical scalable relational Database Service

slide-12
SLIDE 12

How does it compare?

slide-13
SLIDE 13

JDBC driver Standard SQL (ANSI 2011) Client libraries in popular languages (Java, Python, Go, Node.js, etc.) Encryption, Audit logging, Identity and Access Management

Open standards

slide-14
SLIDE 14

Types of workloads

Transactional Companies that have

  • utgrown their

single-instance RDBMS and have already moved to NoSQL solution, but need transactional consistency, or they are looking to move to a scalable solution Scale-out Companies currently sharding databases because they need more read or write throughput than can be placed on a single node Global data plane Companies and/or developers building applications that have global data and need strong consistency Database consolidation Companies that store their business data in multiple database products with variable maintenance

  • verheads and

capabilities and need consolidation of their data

slide-15
SLIDE 15

Architecture overview

Cloud Spanner instance

Zone 1 Zone 2 Zone 3

DB 1 DB 2 DB 1 DB 2 DB 1 DB 2

slide-16
SLIDE 16

Data replication

Zone 1 Zone 2 Zone 3

Table 1 Table 2 Table 1 Table 2 Table 1 Table 2

Update

slide-17
SLIDE 17

Relational Data Layout

SingerId SingerName 1 Beatles 2 U2 3 Pink Floyd SingerId AlbumId AlbumName 1 1 Help! 1 2 Abbey Road 3 1 The Wall

slide-18
SLIDE 18

Interleave Data Layout

1 Beatles 1 1 Help! 1 2 Abbey Road 2 U2 3 Pink Floyd 3 1 The Wall

slide-19
SLIDE 19

Relational data model

CREATE TABLE Singers ( SingerId INT64 NOT NULL, SingerName STRING(MAX), ) PRIMARY KEY(SingerId); CREATE TABLE Albums ( SingerId INT64 NOT NULL, AlbumId INT64 NOT NULL, AlbumName STRING(MAX), ) PRIMARY KEY(SingerId, AlbumId) INTERLEAVE IN PARENT Singers; ALTER TABLE Singers ADD COLUMN Age INT64;

No Downtime Schema Migrations

slide-20
SLIDE 20

Getting started in Python

slide-21
SLIDE 21

Cloud Storage Cloud Bigtable Cloud Datastore Cloud SQL

Good for: Binary or object data Such as: Images, media serving, backups Good for:

Hierarchical, mobile, web

Such as:

User profiles, Game State

Good for: Web frameworks Such as: CMS, eCommerce Good for:

Heavy read + write, events,

Such as:

AdTech, financial, IoT App Engine Memcache

Good for: Web/mobile apps, gaming Such as: Game state, user sessions

Cloud Spanner

Good for:

RDBMS+scale, HA, HTAP

Such as:

User metadata, Ad/Fin/MarTech BigQuery

Good for: Enterprise data warehouse Such as: Analytics, dashboards

In memory Relational Non-relational Object Warehouse

Storage & Database Portfolio

slide-22
SLIDE 22 Cloud SQL Cloud Spanner Cloud Datastore Cloud Bigtable BigQuery Firebase Realtime DB Is your data structured? Is your workload analytics? Is your data relational? Do you need updates
  • r low-latency?
Do you need Mobile SDK’s? Do you need horizontal scalability? No Yes No Yes No Yes Yes No Yes No Yes No Do you need Mobile SDK’s? Firebase Storage Yes No Cloud Storage
slide-23
SLIDE 23

Partner integrations

Launch partners Committed partners

slide-24
SLIDE 24

Whats Next

Checkout Google Cloud Spanner at cloud.google.com/spanner Cloud Spanner 201 - youtu.be/Tzhe7sUNDbg Cloud Spanner Case Study - Quizlet Case Study

slide-25
SLIDE 25

Thank you