SlideShare a Scribd company logo
1 of 22
Google Cloud Spanner
Meetup 26-2-2017
Vadim Solovey //CTO (vadim@doit-intl.com)
DoIT International confidential │ Do not distribute
About us..
Vadim Solovey
CTO
DoIT International confidential │ Do not distribute
DoIT International confidential │ Do not distribute
DoIT International confidential │ Do not distribute
SQL?
Strong consistency
Standard Query Language
ACID transactions
Horizontally scalable
Highly available
or No-SQL?
Confidential + Proprietary
“NewSQL is a class of modern relational database management systems that seek to
provide the same scalable performance of NoSQL systems for online transaction
processing (OLTP) read-write workloads while still maintaining the ACID guarantees of
a traditional database system. [...] Example systems in this category are Google
Spanner …”
Source: https://en.wikipedia.org/wiki/NewSQL
Confidential + Proprietary
It is impossible for a distributed computer system to simultaneously provide more
than two out of three of the following guarantees: Consistency. Availability. Partition
Tolerance.
CAP Theorem
“Cloud Spanner is not just software. It is the union of
software, hardware — in the form of atomic clocks in
Google’s data centers — and an incredibly robust network
connecting their data centers together. So it’s not just
writing code. It’s a lot of investment and a lot of operational
expertise that Google excels at.”
Nick Heudecker
Research Director, Gartner
With Cloud Spanner you enjoy all the
traditional benefits of a SQL database:
● ACID transactions
● High Availability through synchronous
replication
● Schemas (w/ changes without
downtime),
● SQL Queries
● Scales Horizontally
● Managed by Google SRE team
Cloud Spanner 101
Best of Both Relational & NoSQL
Cloud Spanner Traditional Relational Traditional NoSQL
Schema ✓ Yes ✓ Yes X No
SQL ✓ Yes ✓ Yes X No
Consistency ✓ Strong ✓ Strong X Eventual
Availability ✓ High X Failover ✓ High
Scalability ✓ Horizontal X Vertical ✓ Horizontal
Replication ✓ Automatic ↻ Configurable ↻ Configurable
Cloud StorageCloud 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
Cloud
Memorystore
Good for:
Web/mobile apps,
gaming
Such as:
Game state, user
sessions
EAP
Cloud
Spanner
Beta
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
Cloud Database Portfolio
Pricing
No ops or I/O to provision
Storage auto-scales, no storage provisioning required
Nodes
● $0.90 / hour / node (includes 3 replications)
Storage
● SSD: $0.30 GB / month (includes replication)
Network
● Standard cross-region and Internet egress
● Free: Ingress, egress within region
Other solutions on the market
Cloud Spanner Oracle
AWS
Aurora
AWS
DynamoDB
Azure
DocumentDB
MongoDB Cassandra
Type Scale out relational RDBMS RDBMS Key-value Document Document Wide-column
Schema Yes Yes Yes No No No No
SQL Native Native Native No Limited No CQL
Consistency (Default) Strong (global)
Strong
(datacenter)
Strong
(within AZ)
Tunable Tunable Eventual Tunable
Availability
99.99% *
(multi-region: 5 9s)
User
configured
99.99% Unspecified 99.99% Unspecified Unspecified
Data-layer Encryption Yes Yes Within Region Client-side No Not by default Datastax
Scalability Horizontal within DC Vertical Horizontal Horizontal Horizontal Horizontal
Replication
Regional
(multi-region: 2017)
Datacenter Regional Multi-region Multi-region User configured User configured
Managed Service Yes Yes Yes Yes Yes
Atlas
3rd Party Cloud
3rd party
TCO Comparisons
Cloud Spanner
(regional replication)
Cloud SQL
(HA)
Cloud Bigtable
(unreplicated)
AWS Aurora
AWS
DynamoDB
Azure
DocumentDB
Resource-based Resource-based Resource-based 3Y RI Pricing On-Demand per-op per-op
Read-heavy workload (50GB storage)
$2,094 $2,226 $1,021 $973 $1,744 $2400 $1887
Mixed Workload (50GB storage)
$2,094 $2,226 $1,021 $973 $1,744 $4,398 $5,333
Interaction
gRPC and RESTful client libraries available:
● Java
● Python
● Golang
● NodeJS
● Ruby (upcoming)
● PHP (upcoming)
JDBC Driver is Available as well for limited legacy apps support.
Google Cloud CLI (work with instances, databases and run queries)
Data Types & Data Definition Language
Data Types Available:
● BOOL, INT64, FLOAT64, STRING( length ), BYTES( length ), DATE, TIMESTAMP
● ARRAY of scalar types (no access to individual members, read or write the entire array)
Use Cloud Spanner's Data Definition Language (DDL) to work with databases, tables and indexes
● CREATE
● ALTER
● DROP
Expressions, Functions, and Operators
● CASTing i.e. CAST(x=1 AS STRING)
● Aggregations, i.e. COUNT, MIN, MAX, AVG, BIT*, SUM
● Mathematical, i.e. SQRT(X)
● String, i.e. LENGTH(value) or SUBSTR(value, position[, length])
● Array, i.e. ARRAY_LENGTH(array_expression)
● Date/Time, i.e. DATE_DIFF(date_expression, date_expression, date_part)
● Conditional, i.e. WHEN, CASE, IF, COALESCE
Best Practices & Performance
● Each node can provide up to 10K QPS of reads / 2K QPS of 1KB writes and 2 TiB storage
● Minimum of 3 nodes recommended for production environments (min is one node)
● Carefully choose a primary key (to avoid hotspots)
Product Roadmap for 2017
● Multi-Regional replication
● Dataflow | Pub Sub | BigQuery integrations
● Local mock server
● JSON support (repeated and nested fields)
● Writes in SQL
Spanner Resources
● Documentation: cloud.google.com/spanner/docs
● Podcast with Deepti Srivastava: goo.gl/tlGAx4
● Optimizing Schema Design for Cloud Spanner: https://goo.gl/4KG1hZ
● Spanner, TrueTime and the CAP Theorem - https://research.google.com/pubs/pub45855.html
● Whitepaper Explained: by Wilson Hsieh - youtube.com/watch?v=NthK17nbpYs
● The Life of Cloud Spanner Reads & Writes - https://goo.gl/vXK1r4
● Life of a Cloud Spanner Query - https://goo.gl/mCyTvW
DEMO

More Related Content

What's hot

Introduction to Google Compute Engine
Introduction to Google Compute EngineIntroduction to Google Compute Engine
Introduction to Google Compute Engine
Colin Su
 

What's hot (20)

CockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL DatabaseCockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL Database
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Oracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleOracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration Hustle
 
Apache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic DatasetsApache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic Datasets
 
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
 
Ceph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing GuideCeph Object Storage Reference Architecture Performance and Sizing Guide
Ceph Object Storage Reference Architecture Performance and Sizing Guide
 
CockroachDB
CockroachDBCockroachDB
CockroachDB
 
Cassandra
CassandraCassandra
Cassandra
 
(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per Second(BDT318) How Netflix Handles Up To 8 Million Events Per Second
(BDT318) How Netflix Handles Up To 8 Million Events Per Second
 
Azure Storage Services - Part 01
Azure Storage Services - Part 01Azure Storage Services - Part 01
Azure Storage Services - Part 01
 
What is NoSQL and CAP Theorem
What is NoSQL and CAP TheoremWhat is NoSQL and CAP Theorem
What is NoSQL and CAP Theorem
 
PostgreSQL and CockroachDB SQL
PostgreSQL and CockroachDB SQLPostgreSQL and CockroachDB SQL
PostgreSQL and CockroachDB SQL
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
 
Introduction to Cassandra
Introduction to CassandraIntroduction to Cassandra
Introduction to Cassandra
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Using Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series WorkloadsUsing Time Window Compaction Strategy For Time Series Workloads
Using Time Window Compaction Strategy For Time Series Workloads
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
 
Introduction to Google Compute Engine
Introduction to Google Compute EngineIntroduction to Google Compute Engine
Introduction to Google Compute Engine
 
Technical overview of Azure Cosmos DB
Technical overview of Azure Cosmos DBTechnical overview of Azure Cosmos DB
Technical overview of Azure Cosmos DB
 

Viewers also liked

Viewers also liked (7)

Intro to new Google cloud technologies: Google Storage, Prediction API, BigQuery
Intro to new Google cloud technologies: Google Storage, Prediction API, BigQueryIntro to new Google cloud technologies: Google Storage, Prediction API, BigQuery
Intro to new Google cloud technologies: Google Storage, Prediction API, BigQuery
 
Redshift VS BigQuery
Redshift VS BigQueryRedshift VS BigQuery
Redshift VS BigQuery
 
Google BigQuery for Everyday Developer
Google BigQuery for Everyday DeveloperGoogle BigQuery for Everyday Developer
Google BigQuery for Everyday Developer
 
An indepth look at Google BigQuery Architecture by Felipe Hoffa of Google
An indepth look at Google BigQuery Architecture by Felipe Hoffa of GoogleAn indepth look at Google BigQuery Architecture by Felipe Hoffa of Google
An indepth look at Google BigQuery Architecture by Felipe Hoffa of Google
 
AWS Athena vs. Google BigQuery for interactive SQL Queries
AWS Athena vs. Google BigQuery for interactive SQL QueriesAWS Athena vs. Google BigQuery for interactive SQL Queries
AWS Athena vs. Google BigQuery for interactive SQL Queries
 
Google BigQuery
Google BigQueryGoogle BigQuery
Google BigQuery
 
Google BigQuery - Features & Benefits
Google BigQuery - Features & BenefitsGoogle BigQuery - Features & Benefits
Google BigQuery - Features & Benefits
 

Similar to Google Cloud Spanner Preview

The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
The Hive
 
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Andrey Vykhodtsev
 

Similar to Google Cloud Spanner Preview (20)

Time Series Analytics Azure ADX
Time Series Analytics Azure ADXTime Series Analytics Azure ADX
Time Series Analytics Azure ADX
 
The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
The Hive Think Tank - The Microsoft Big Data Stack by Raghu Ramakrishnan, CTO...
 
Public Cloud Workshop
Public Cloud WorkshopPublic Cloud Workshop
Public Cloud Workshop
 
Introduction to Azure Cloud Storage
Introduction to Azure Cloud StorageIntroduction to Azure Cloud Storage
Introduction to Azure Cloud Storage
 
Melbourne: Certus Data 2.0 Vault Meetup with Snowflake - Data Vault In The Cl...
Melbourne: Certus Data 2.0 Vault Meetup with Snowflake - Data Vault In The Cl...Melbourne: Certus Data 2.0 Vault Meetup with Snowflake - Data Vault In The Cl...
Melbourne: Certus Data 2.0 Vault Meetup with Snowflake - Data Vault In The Cl...
 
Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020
 
AWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - SlidesAWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - Slides
 
Intro to hadoop ecosystem
Intro to hadoop ecosystemIntro to hadoop ecosystem
Intro to hadoop ecosystem
 
Azure Cosmos DB - Technical Deep Dive
Azure Cosmos DB - Technical Deep DiveAzure Cosmos DB - Technical Deep Dive
Azure Cosmos DB - Technical Deep Dive
 
Differentiate Big Data vs Data Warehouse use cases for a cloud solution
Differentiate Big Data vs Data Warehouse use cases for a cloud solutionDifferentiate Big Data vs Data Warehouse use cases for a cloud solution
Differentiate Big Data vs Data Warehouse use cases for a cloud solution
 
Azure data platform overview
Azure data platform overviewAzure data platform overview
Azure data platform overview
 
TenT-Day01.pptx
TenT-Day01.pptxTenT-Day01.pptx
TenT-Day01.pptx
 
TenT-Day01.pptx
TenT-Day01.pptxTenT-Day01.pptx
TenT-Day01.pptx
 
USQL Trivadis Azure Data Lake Event
USQL Trivadis Azure Data Lake EventUSQL Trivadis Azure Data Lake Event
USQL Trivadis Azure Data Lake Event
 
Slides: Relational to NoSQL Migration
Slides: Relational to NoSQL MigrationSlides: Relational to NoSQL Migration
Slides: Relational to NoSQL Migration
 
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
 
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
Big Data Essentials meetup @ IBM Ljubljana 23.06.2015
 
201905 Azure Databricks for Machine Learning
201905 Azure Databricks for Machine Learning201905 Azure Databricks for Machine Learning
201905 Azure Databricks for Machine Learning
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Introduction to cloud and openstack
Introduction to cloud and openstackIntroduction to cloud and openstack
Introduction to cloud and openstack
 

More from DoiT International

More from DoiT International (18)

Terraform Modules Restructured
Terraform Modules RestructuredTerraform Modules Restructured
Terraform Modules Restructured
 
GAN training with Tensorflow and Tensor Cores
GAN training with Tensorflow and Tensor CoresGAN training with Tensorflow and Tensor Cores
GAN training with Tensorflow and Tensor Cores
 
Orchestrating Redis & K8s Operators
Orchestrating Redis & K8s OperatorsOrchestrating Redis & K8s Operators
Orchestrating Redis & K8s Operators
 
K8s best practices from the field!
K8s best practices from the field!K8s best practices from the field!
K8s best practices from the field!
 
An Open-Source Platform to Connect, Manage, and Secure Microservices
An Open-Source Platform to Connect, Manage, and Secure MicroservicesAn Open-Source Platform to Connect, Manage, and Secure Microservices
An Open-Source Platform to Connect, Manage, and Secure Microservices
 
Is your Elastic Cluster Stable and Production Ready?
Is your Elastic Cluster Stable and Production Ready?Is your Elastic Cluster Stable and Production Ready?
Is your Elastic Cluster Stable and Production Ready?
 
Applying ML for Log Analysis
Applying ML for Log AnalysisApplying ML for Log Analysis
Applying ML for Log Analysis
 
GCP for AWS Professionals
GCP for AWS ProfessionalsGCP for AWS Professionals
GCP for AWS Professionals
 
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data ProcessingCloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
 
AWS Cyber Security Best Practices
AWS Cyber Security Best PracticesAWS Cyber Security Best Practices
AWS Cyber Security Best Practices
 
Amazon Athena Hands-On Workshop
Amazon Athena Hands-On WorkshopAmazon Athena Hands-On Workshop
Amazon Athena Hands-On Workshop
 
Google BigQuery 101 & What’s New
Google BigQuery 101 & What’s NewGoogle BigQuery 101 & What’s New
Google BigQuery 101 & What’s New
 
Running Production-Grade Kubernetes on AWS
Running Production-Grade Kubernetes on AWSRunning Production-Grade Kubernetes on AWS
Running Production-Grade Kubernetes on AWS
 
Scaling Jenkins with Kubernetes by Ami Mahloof
Scaling Jenkins with Kubernetes by Ami MahloofScaling Jenkins with Kubernetes by Ami Mahloof
Scaling Jenkins with Kubernetes by Ami Mahloof
 
CI Implementation with Kubernetes at LivePerson by Saar Demri
CI Implementation with Kubernetes at LivePerson by Saar DemriCI Implementation with Kubernetes at LivePerson by Saar Demri
CI Implementation with Kubernetes at LivePerson by Saar Demri
 
Kubernetes @ Nanit by Chen Fisher
Kubernetes @ Nanit by Chen FisherKubernetes @ Nanit by Chen Fisher
Kubernetes @ Nanit by Chen Fisher
 
Dataflow - A Unified Model for Batch and Streaming Data Processing
Dataflow - A Unified Model for Batch and Streaming Data ProcessingDataflow - A Unified Model for Batch and Streaming Data Processing
Dataflow - A Unified Model for Batch and Streaming Data Processing
 
Kubernetes - State of the Union (Q1-2016)
Kubernetes - State of the Union (Q1-2016)Kubernetes - State of the Union (Q1-2016)
Kubernetes - State of the Union (Q1-2016)
 

Recently uploaded

➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
nirzagarg
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
nirzagarg
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 

Recently uploaded (20)

20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
Wadgaon Sheri $ Call Girls Pune 10k @ I'm VIP Independent Escorts Girls 80057...
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
Thalassery Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call G...
 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
 
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
💚😋 Bilaspur Escort Service Call Girls, 9352852248 ₹5000 To 25K With AC💚😋
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 

Google Cloud Spanner Preview

  • 1. Google Cloud Spanner Meetup 26-2-2017 Vadim Solovey //CTO (vadim@doit-intl.com)
  • 2. DoIT International confidential │ Do not distribute About us.. Vadim Solovey CTO
  • 3. DoIT International confidential │ Do not distribute
  • 4. DoIT International confidential │ Do not distribute
  • 5. DoIT International confidential │ Do not distribute
  • 6. SQL? Strong consistency Standard Query Language ACID transactions Horizontally scalable Highly available or No-SQL?
  • 7. Confidential + Proprietary “NewSQL is a class of modern relational database management systems that seek to provide the same scalable performance of NoSQL systems for online transaction processing (OLTP) read-write workloads while still maintaining the ACID guarantees of a traditional database system. [...] Example systems in this category are Google Spanner …” Source: https://en.wikipedia.org/wiki/NewSQL
  • 8. Confidential + Proprietary It is impossible for a distributed computer system to simultaneously provide more than two out of three of the following guarantees: Consistency. Availability. Partition Tolerance. CAP Theorem
  • 9. “Cloud Spanner is not just software. It is the union of software, hardware — in the form of atomic clocks in Google’s data centers — and an incredibly robust network connecting their data centers together. So it’s not just writing code. It’s a lot of investment and a lot of operational expertise that Google excels at.” Nick Heudecker Research Director, Gartner
  • 10. With Cloud Spanner you enjoy all the traditional benefits of a SQL database: ● ACID transactions ● High Availability through synchronous replication ● Schemas (w/ changes without downtime), ● SQL Queries ● Scales Horizontally ● Managed by Google SRE team Cloud Spanner 101
  • 11. Best of Both Relational & NoSQL Cloud Spanner Traditional Relational Traditional NoSQL Schema ✓ Yes ✓ Yes X No SQL ✓ Yes ✓ Yes X No Consistency ✓ Strong ✓ Strong X Eventual Availability ✓ High X Failover ✓ High Scalability ✓ Horizontal X Vertical ✓ Horizontal Replication ✓ Automatic ↻ Configurable ↻ Configurable
  • 12. Cloud StorageCloud 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 Cloud Memorystore Good for: Web/mobile apps, gaming Such as: Game state, user sessions EAP Cloud Spanner Beta 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 Cloud Database Portfolio
  • 13. Pricing No ops or I/O to provision Storage auto-scales, no storage provisioning required Nodes ● $0.90 / hour / node (includes 3 replications) Storage ● SSD: $0.30 GB / month (includes replication) Network ● Standard cross-region and Internet egress ● Free: Ingress, egress within region
  • 14. Other solutions on the market Cloud Spanner Oracle AWS Aurora AWS DynamoDB Azure DocumentDB MongoDB Cassandra Type Scale out relational RDBMS RDBMS Key-value Document Document Wide-column Schema Yes Yes Yes No No No No SQL Native Native Native No Limited No CQL Consistency (Default) Strong (global) Strong (datacenter) Strong (within AZ) Tunable Tunable Eventual Tunable Availability 99.99% * (multi-region: 5 9s) User configured 99.99% Unspecified 99.99% Unspecified Unspecified Data-layer Encryption Yes Yes Within Region Client-side No Not by default Datastax Scalability Horizontal within DC Vertical Horizontal Horizontal Horizontal Horizontal Replication Regional (multi-region: 2017) Datacenter Regional Multi-region Multi-region User configured User configured Managed Service Yes Yes Yes Yes Yes Atlas 3rd Party Cloud 3rd party
  • 15. TCO Comparisons Cloud Spanner (regional replication) Cloud SQL (HA) Cloud Bigtable (unreplicated) AWS Aurora AWS DynamoDB Azure DocumentDB Resource-based Resource-based Resource-based 3Y RI Pricing On-Demand per-op per-op Read-heavy workload (50GB storage) $2,094 $2,226 $1,021 $973 $1,744 $2400 $1887 Mixed Workload (50GB storage) $2,094 $2,226 $1,021 $973 $1,744 $4,398 $5,333
  • 16. Interaction gRPC and RESTful client libraries available: ● Java ● Python ● Golang ● NodeJS ● Ruby (upcoming) ● PHP (upcoming) JDBC Driver is Available as well for limited legacy apps support. Google Cloud CLI (work with instances, databases and run queries)
  • 17. Data Types & Data Definition Language Data Types Available: ● BOOL, INT64, FLOAT64, STRING( length ), BYTES( length ), DATE, TIMESTAMP ● ARRAY of scalar types (no access to individual members, read or write the entire array) Use Cloud Spanner's Data Definition Language (DDL) to work with databases, tables and indexes ● CREATE ● ALTER ● DROP
  • 18. Expressions, Functions, and Operators ● CASTing i.e. CAST(x=1 AS STRING) ● Aggregations, i.e. COUNT, MIN, MAX, AVG, BIT*, SUM ● Mathematical, i.e. SQRT(X) ● String, i.e. LENGTH(value) or SUBSTR(value, position[, length]) ● Array, i.e. ARRAY_LENGTH(array_expression) ● Date/Time, i.e. DATE_DIFF(date_expression, date_expression, date_part) ● Conditional, i.e. WHEN, CASE, IF, COALESCE
  • 19. Best Practices & Performance ● Each node can provide up to 10K QPS of reads / 2K QPS of 1KB writes and 2 TiB storage ● Minimum of 3 nodes recommended for production environments (min is one node) ● Carefully choose a primary key (to avoid hotspots)
  • 20. Product Roadmap for 2017 ● Multi-Regional replication ● Dataflow | Pub Sub | BigQuery integrations ● Local mock server ● JSON support (repeated and nested fields) ● Writes in SQL
  • 21. Spanner Resources ● Documentation: cloud.google.com/spanner/docs ● Podcast with Deepti Srivastava: goo.gl/tlGAx4 ● Optimizing Schema Design for Cloud Spanner: https://goo.gl/4KG1hZ ● Spanner, TrueTime and the CAP Theorem - https://research.google.com/pubs/pub45855.html ● Whitepaper Explained: by Wilson Hsieh - youtube.com/watch?v=NthK17nbpYs ● The Life of Cloud Spanner Reads & Writes - https://goo.gl/vXK1r4 ● Life of a Cloud Spanner Query - https://goo.gl/mCyTvW
  • 22. DEMO