|
|
Cloud SQL
Author: Venkata Sudhakar
Google Cloud SQL is a fully managed relational database service that supports MySQL, PostgreSQL, and SQL Server. It handles replication, patch management, and database management so you can focus on building applications. Key Features: 1. Fully managed - Automated backups, replication, encryption, and failover. 2. Multiple engines - Supports MySQL 5.7/8.0, PostgreSQL 9.6 - 15, SQL Server 2017/2019. 3. High availability - Regional persistent disk ensures 99.95% uptime SLA. 4. Scalable - Scale storage up to 64TB and compute up to 96 vCPUs. 5. Secure - Data encrypted at rest and in transit; IAM integration for access control. The below example shows how to connect to Cloud SQL PostgreSQL and run queries using Java.
It gives the following output,
Inserted employee record
Alice Smith Engineering $95000.00
Cloud SQL vs Cloud Spanner: Cloud SQL - Regional relational database; best for traditional OLTP workloads up to a few TB. Lower cost, familiar MySQL/PostgreSQL/SQL Server engines. Cloud Spanner - Globally distributed, horizontally scalable relational database; best for planet-scale workloads requiring strong consistency and 99.999% availability.
|
|