dc201 Choosing The Right Database On Google Cloud
dc201 Choosing The Right Database On Google Cloud
Choosing the
Right Database
on Google Cloud
Server Maintenance/
Upgrades
Database backups
Monitoring
Databases are moving to cloud, fast
Gartner, Magic Quadrant for Cloud Database Management Systems, November 23, 2020. Donald Feinberg, et al.
You know the business destination,
Google Cloud provides you a well-defined path
DMS Datastream
Spanner Firestore
Bigtable
02
Increased costs
* Will depend on the nature of your company’s commercial terms with Oracle Corporation.
Not long ago, Cloud SQL had many limitations
Recovery
Cloud SQL
Cloud SQL Cloud SQL Cloud SQL for SQL Cloud SQL
Maintenance Cloud SQL
CMEK VPC Control Server MySQL 8.0
Controls MySQL &
PostgreSQL
PITR
Cloud SQL
Cloud SQL
Cloud SQL Maintenance Cloud SQL
Access PostgreSQL 13
Data Residency Downtime PostgreSQL 12
Transparency
(>300s) Open
Best Maint. GA
More Security Controls Cloud SQL Latest Versions & New Engines
Cross Region
Replicas
GA GA GA GA GA
Cloud SQL
Cloud SQL Cloud SQL GA Cloud SQL for SQL Cloud SQL
Maintenance Cloud SQL
CMEK VPC Control Server MySQL 8.0
Controls MySQL &
PostgreSQL
PITR
GA GA Cloud SQL GA GA GA
Cloud SQL Reduced
Cloud SQL Cloud SQL
Access Maintenance PostgreSQL 13
Data Residency PostgreSQL 12
Transparency Downtime Open
(<90s)
GA GA GA H2 2022
2021
Cloud SQL User In-place major
Cloud SQL Cloud SQL IAM Postgres -
Defined Deny version
Audit logging authentication pglogical, CDC
Periods upgrades
Public
GA
Preview
Cloud SQL for Easy Migrations Only Cloud SQL
SQL Server AD
Integration
GA GA GA GA
Database BigQuery to
Committed Use
Migration Cloud SQL SQL Insights
Discounts
Service Federation
Modernize with managed NoSQL database services
HBase → Bigtable
Unified support
Unified billing
Unified experience
Consideration Questions
Availability ● How much downtime is acceptable for the application (higher availability comes at higher cost)?
● How many concurrent users for each workload? How will these factors change over time?
Scalability
● How will you manage sharding as your system grows?
● Do you need the rigor of a relational model, or the simplicity and performance of key-value?
Data model
● The combination of flexibility and functionality that the document data model provides?
● Where are your customers, so you can deploy “near” them in network time?
Multi-region options
● Which regional combinations make sense for your failover strategy?
Questions worth asking
Consideration Questions
Availability ● How much downtime is acceptable for the application (higher availability comes at higher cost)?
● How many concurrent users for each workload? How will these factors change over time?
Scalability
● How will you manage sharding as your system grows?
● Do you need the rigor of a relational model, or the simplicity and performance of key-value?
Data model
● The combination of flexibility and functionality that the document data model provides?
● Where are your customers, so you can deploy “near” them in network time?
Multi-region options
● Which regional combinations make sense for your failover strategy?
How cloud native databases improve your agility
Built into Google’s
Cloud Native databases
Automatic shard
99.999% uptime SLA
management
Spanner Bigtable
Online, unlimited scaling Automatic failure recovery
Zero-touch global
Available in all regions
replication Firestore
When to choose Spanner
Superior price+performance vs other sharded relational databases Of course, with cloud native you get
You need the predictable low latency provided by global eventual consistency Considerations
You need flexibility for evolving, or sparse schemas You need secondary indexes
Superior price+performance vs DynamoDB, Cassandra, HBase Of course, with cloud native you get
You need real-time data syncing and offline data access You need capacity-based pricing
You want a document database with ACID transactions, external consistency Your data is relational in nature
You want a serverless model to avoid over/under provisioning You need customer-managed
encryption keys
SLO Requirements -
1. Hot-hot, Multi-regional with 99.99% availability
2. > 30K TPS throughput with P95 latency as single Spanner BigTable Spanner Datastore Firestore
digit ms.
Price Common Service –
Google BigTable Use case
Macy’s Data Center
Price
Requirements - Authoring
MQ Data Loader
Clients –
Data Insights - Digital,
Stores, Big Table GBQ
● We have millions of UPCs that grows
Call Center
rapidly across 750 locations with 30 days
worth of price data.
Price Common Service –
Cloud BigTable Schema Design
Row Key Price Data (in protobuf) Metadata
Challenge: Anticipated Volume of records - <location>#<upc>
● Multimillion UPCs * 750 Stores * 30 (if timestamp is part of
12#5432#843572043705 [{"effTs":"2021-05-04T00:00:00","endTs":null, ………….
row key) => Billions of records (division is a low cardinality "priceTypeId":1,"ticketPrice":"876.00”}]
remove that even distribution of
● With each row ~400 Bytes, the total size = ~40 TB data)
What’s next?
Moving forward with your modernization
Helping you get there safely and efficiently
Database Assessment Partners & Programs for Database Migration Service A+ Customer Experience
(Stratozone, migVisor) Migrations (DMS) Program (ACE)
Assess and prioritize your Partners and programs that Migrate workloads in just a Providing enterprise grade
workloads for migration to accelerate migrations to few clicks with a serverless reliability and improved
Google Cloud Google Cloud experience customer experience
Thank you.