AlloyDB for PostgreSQL
Google-engineered PostgreSQL with disaggregated storage and an in-memory columnar engine—delivering 4x faster transactional throughput and up to 100x faster analytical queries.
Email This Decision Path & Database Recommendation
We will send the full decision trail and architectural notes to your inbox (CC: cloudsales@aviato.consulting).
Want to Trace the Life of a Query or Compare Engines Side-by-Side?
Once you narrow down your shortlist in the decision tree above, use our Interactive Google Cloud Database Chooser to simulate how queries execute across Spanner, AlloyDB, Bigtable, and Firestore—and inspect why dumping AWS DynamoDB JSON into Bigtable causes full-table scans.
Google Cloud Database & Storage Options at a Glance
Every managed database and storage service in the Google Cloud decision tree, what workload it is engineered for, and how it maps from AWS and Microsoft Azure.
| Google Cloud Service | Category & Data Model | What It Is Optimised For | Max SLA & Scale | AWS & Azure Equivalents |
|---|---|---|---|---|
| Cloud Spanner | Relational SQL (Distributed) | Global active-active transactions, unlimited horizontal write scaling, external ACID consistency | 99.999% · Petabytes | Aurora Global DB, CockroachDB, DynamoDB (with ACID/SQL) |
| AlloyDB for PostgreSQL | Relational SQL + Columnar HTAP | Enterprise PostgreSQL (4x OLTP, 100x analytics), Oracle migrations, pgvector AI | 99.99% · Up to 128 TB | AWS Aurora PostgreSQL, Azure SQL Business Critical, Oracle |
| Cloud SQL | Relational SQL (Regional) | Managed PostgreSQL, MySQL & SQL Server for web apps, microservices, ERP/CRM | 99.99% · Up to 64 TB | AWS RDS, Azure SQL Database / Managed Instance |
| Firestore | NoSQL Document (JSON) | Serverless JSON documents, secondary composite indexes, ACID transactions, mobile/web offline sync | 99.999% · Serverless | AWS DynamoDB (GSI/JSON), MongoDB Atlas, Azure Cosmos DB |
| Firebase Realtime DB | NoSQL JSON Tree (WebSockets) | Millisecond state synchronization across mobile/web clients (presence, cursors, gaming) | 99.95% · 200k conn/db | AWS AppSync Realtime, Pusher, Socket.io + Redis |
| Memorystore | In-Memory Key-Value | Sub-millisecond caching, session stores, rate limiting, leaderboards (Redis, Valkey, Memcached) | 99.99% · Sub-ms | AWS ElastiCache, Azure Cache for Redis |
| Cloud Bigtable | NoSQL Wide-Column | High-velocity single-keyed & time-series streams (<10ms at millions of ops/sec), ML features | 99.999% · Petabytes | Apache Cassandra, HBase, AWS Keyspaces, DynamoDB (KV) |
| BigQuery | Columnar OLAP Warehouse | Serverless petabyte SQL analytics, BI dashboards (Looker), Iceberg lakehouses, BigQuery ML | 99.99% · Exabytes | Snowflake, Amazon Redshift, Azure Synapse / Microsoft Fabric |
| Cloud Storage (+ Firebase) | Unstructured Object / Blob | Global object storage, data lakes, backups, media streaming, direct mobile SDK file uploads | 99.95% · 11-Nines Durability | Amazon S3, Azure Blob Storage / ADLS Gen2 |
| Filestore | Unstructured POSIX / NFS | Shared network file systems mounted across Compute Engine VMs and GKE (ReadWriteMany) | 99.99% · 100 TB/share | AWS EFS / FSx, Azure Files, NetApp ONTAP |
High-Level Breakdown: Every Google Cloud Database & What It Is Optimised For
Walking the Google Cloud database decision tree comes down to matching your data structure, query access pattern, and scaling model to the right storage engine. Below is an engineering breakdown of every database and storage service in the flowchart, what each engine is optimised for, and where teams commonly make mistakes during AWS to Google Cloud or Azure to Google Cloud migrations.
1. Relational SQL Databases (Structured → Operational → Relational)
When your application relies on structured schemas, SQL joins across multiple tables, foreign key constraints, and strict ACID transactions, Google Cloud provides three distinct relational tiers:
Cloud Spanner — Optimised for Global Horizontal Write Scale & 99.999% Availability
- What it is: A globally distributed, strongly consistent relational database service engineered around Google's atomic clock and GPS hardware infrastructure (TrueTime).
- What it is optimised for: Workloads that have outgrown a single primary writer node or require active-active multi-region writes with zero failover downtime and a 99.999% availability SLA (less than 5.26 minutes of permitted downtime per year). Spanner automatically shards tables into splits across nodes as traffic grows, without manual application-level sharding.
- Ideal use cases: Global financial ledgers, high-volume e-commerce inventory and order management, multi-region SaaS control planes, and gaming backends.
AlloyDB for PostgreSQL — Optimised for High-Performance Enterprise PostgreSQL, HTAP & AI
- What it is: A 100% PostgreSQL-compatible database built on a Google-engineered compute layer and a disaggregated, log-structured regional storage engine.
- What it is optimised for: Demanding transactional workloads (4x faster than standard PostgreSQL), real-time operational reporting without ETL via its built-in autopilot in-memory columnar engine (up to 100x faster analytical queries), and enterprise AI applications using
pgvectorwith Google's ScaNN index. - Ideal use cases: Replacing commercial Oracle or SQL Server licences, upgrading bottlenecked AWS Aurora PostgreSQL clusters, and running hybrid transactional/analytical (HTAP) workloads with a 99.99% SLA that includes maintenance windows.
Cloud SQL — Optimised for Standard Regional PostgreSQL, MySQL & SQL Server
- What it is: A fully managed regional relational database service supporting open-source PostgreSQL, MySQL, and commercial Microsoft SQL Server.
- What it is optimised for: Lift-and-shift migrations and standard cloud-native applications that fit comfortably on a single primary instance (up to 128 vCPUs, 864 GB RAM, and 64 TB storage) with automated regional high-availability standby failover and cross-zone read replicas.
- Ideal use cases: Microservices, CRM/ERP backends, content management systems, and migrating AWS RDS or Azure SQL Database instances with minimal code changes.
2. Non-Relational NoSQL & In-Memory Databases (Structured → Operational → Non-Relational)
When your data is modeled as hierarchical JSON documents, key-value pairs, or ephemeral session state—and you do not require cross-table SQL joins—the decision tree branches across three purpose-built engines:
Firestore (Successor to Cloud Datastore) — Optimised for Serverless JSON Documents & Secondary Indexes
- What it is: Google Cloud's serverless NoSQL document database, superseding legacy Cloud Datastore.
- What it is optimised for: Storing nested JSON documents organized into collections, with automatic indexing on every document attribute and composite indexes for complex multi-field filtering and sorting. Uniquely among serverless document databases, Firestore provides strong global consistency and serializable ACID transactions, plus native iOS, Android, Flutter, and Web SDKs with offline persistence.
- Ideal use cases: Mobile and web application backends, user profiles, product catalogs, and migrating AWS DynamoDB or MongoDB workloads that query on secondary attributes.
Firebase Realtime Database — Optimised for Millisecond WebSocket State Synchronisation
- What it is: A low-latency JSON tree database that synchronises state changes in real time across connected client devices over persistent WebSocket connections.
- What it is optimised for: Tiny, high-frequency state updates (such as online/offline presence indicators, live typing indicators, collaborative whiteboard cursors, and multiplayer game state) where sub-50ms fan-out latency matters more than rich multi-field querying.
Memorystore (for Redis, Valkey & Memcached) — Optimised for Sub-Millisecond In-Memory Caching
- What it is: A fully managed in-memory key-value data store supporting open-source Valkey, Redis, Redis Cluster, and Memcached.
- What it is optimised for: Microsecond-latency read/write operations at millions of requests per second—offloading repetitive queries from primary databases, managing distributed locks, rate limiting API gateways, and serving real-time leaderboards.
3. Analytical & High-Throughput Time-Series Engines (Structured → Analytics)
When your workload ingests, scans, or aggregates massive volumes of structured records for analytics, telemetry, or machine learning, the decision tree splits on a single question: Do you need millisecond single-key updates and point lookups, or serverless SQL scans across columns?
Cloud Bigtable — Optimised for Petabyte Wide-Column Streams & Sub-10ms Key Lookups
- What it is: Google's sparsely populated wide-column NoSQL store (the engine underneath Google Search, Maps, and Gmail), backed by Google's Colossus file system.
- What it is optimised for: Sustained high-throughput writes and reads (10,000 to millions of operations per second) at single-digit millisecond latency, indexed strictly by a single lexicographically sorted Row Key.
- Critical architectural note: Because Bigtable only indexes the Row Key, never store unindexed JSON blobs in Bigtable cells if you intend to filter on nested JSON fields—doing so forces a full-table scan. (Explore this in our Interactive Database Chooser.)
BigQuery — Optimised for Serverless Petabyte SQL Warehousing, BI & Lakehouses
- What it is: A serverless, distributed columnar enterprise data warehouse that decouples storage (Colossus Capacitor format) from compute (Dremel execution trees over Google's Jupiter petabit network).
- What it is optimised for: Ad-hoc ANSI SQL aggregations over terabytes to petabytes of data, Looker business intelligence dashboards (accelerated in-memory via BI Engine), real-time change data capture (Datastream CDC), Apache Iceberg open lakehouses, and in-warehouse machine learning.
4. Unstructured Object & File Storage (Structured → NO)
When storing images, video streams, PDFs, backups, Parquet files, or shared application directories, choose between POSIX file storage and object storage:
- Filestore (Managed NFS): Optimised for workloads that require a traditional POSIX file system mounted simultaneously across multiple Compute Engine VMs or Google Kubernetes Engine (GKE) pods (
ReadWriteManyPersistentVolumeClaims) with low-latency file locking. - Cloud Storage: Optimised for infinitely scalable, 11-nines durable object/blob storage accessed over HTTP/gRPC APIs—powering BigQuery lakehouses, archival backups (Autoclass tiering), CDN media delivery, and Vertex AI training sets.
- Cloud Storage for Firebase: Optimised for mobile and web apps that upload and download user-generated media directly from client devices using Firebase SDKs and user-identity security rules, backed by Google Cloud Storage buckets.
Related Database Tools & Cloud Migration Playbooks
Google Cloud Database Chooser & Query Tracer
Trace the "Life of a Query" across Spanner, AlloyDB, Bigtable, and Firestore, and inspect the DynamoDB-to-Bigtable JSON trap.
AWS MigrationAWS to Google Cloud Migration
Zero-downtime database and container migrations from AWS RDS, Aurora, DynamoDB, Redshift, and EKS with 100% Google-funded discovery.
20% Savings GuaranteeAzure to Google Cloud Migration
Modernise SQL Server, Cosmos DB, and Synapse onto AlloyDB, Spanner, Firestore, and BigQuery—backed by a contractual 20% savings guarantee.
Google Cloud Database Decision Tree FAQs
Which Google Cloud database should I choose for relational SQL workloads?
Google Cloud offers three managed relational SQL databases depending on your scale and performance needs: choose Cloud SQL for standard regional MySQL, PostgreSQL, or SQL Server workloads (up to 99.99% HA and 64 TB storage); choose AlloyDB for PostgreSQL when you need enterprise PostgreSQL performance (4x faster transactional throughput, up to 100x faster analytical queries via its built-in columnar engine, and native pgvector ScaNN indexing for AI); or choose Cloud Spanner when you need unlimited horizontal write scaling across regions and a 99.999% multi-region active-active SLA.
What is the difference between Firestore, Cloud Bigtable, and Firebase Realtime Database?
All three are NoSQL databases optimized for different access patterns. Firestore (which replaced legacy Cloud Datastore) is a serverless document database storing hierarchical JSON documents with automatic composite indexes, multi-document ACID transactions, and mobile/web offline sync. Cloud Bigtable is a petabyte-scale wide-column store indexed strictly by a single lexicographical Row Key, optimized for sub-10ms high-throughput time-series, IoT, and financial telemetry (>10,000 ops/sec). Firebase Realtime Database stores a single JSON tree synchronized over WebSockets for ultra-low-latency ephemeral state such as live user presence and gaming cursors.
What was missing from Google Cloud’s classic database decision tree flowchart?
Google Cloud’s original storage flowchart predated four flagship services now essential to modern architectures: (1) AlloyDB for PostgreSQL for high-performance regional OLTP, HTAP analytics, and vector search; (2) Firestore as the modern serverless ACID replacement for legacy Cloud Datastore; (3) Memorystore (managed Redis, Valkey, and Memcached) for sub-millisecond in-memory caching; and (4) Filestore for managed POSIX/NFS shared file systems mounted across Compute Engine VMs and Google Kubernetes Engine (GKE) pods.
When should I use Cloud Bigtable vs BigQuery for analytics?
Use BigQuery when your workload runs SQL aggregations, joins, BI dashboards (Looker), and machine learning over gigabytes to petabytes of columnar data where query latency is measured in hundreds of milliseconds to seconds. Use Cloud Bigtable when your analytical workload requires real-time point updates and sub-10ms key-based lookups at massive concurrency (such as serving real-time ML features, personalization profiles, or live IoT time-series charts). BigQuery can also query Bigtable directly via federated external tables without ETL.
What is the Google Cloud equivalent of AWS DynamoDB and Azure Cosmos DB?
For document workloads that filter on multiple JSON attributes or rely on secondary indexes (DynamoDB GSIs or Cosmos DB SQL API), the direct Google Cloud equivalent is Firestore. For massive single-keyed or time-series workloads (>50,000 ops/sec) queried strictly by Partition Key + Sort Key, the equivalent is Cloud Bigtable. If you used DynamoDB or Cosmos DB primarily for multi-region scale but want full relational SQL joins and strict ACID consistency, migrate to Cloud Spanner.
What is the Google Cloud equivalent of AWS RDS, Aurora, and Azure SQL Database?
Standard AWS RDS (MySQL, PostgreSQL, SQL Server) and Azure SQL Database workloads map directly to Cloud SQL. High-performance AWS Aurora PostgreSQL, Oracle modernizations, and business-critical SQL Server workloads that benefit fromPostgreSQL compatibility and hybrid OLTP/analytics map to AlloyDB for PostgreSQL. Global active-active relational databases map to Cloud Spanner.
When should I choose Cloud Storage vs Filestore vs Cloud Storage for Firebase?
All three store unstructured files: choose Cloud Storage for backend object and blob storage (data lakes, Parquet/Iceberg tables, backups, media assets, and ML training data); choose Cloud Storage for Firebase when mobile (iOS, Android, Flutter) or web clients upload and download files directly using client SDKs and Firebase Auth security rules; and choose Filestore when applications on Compute Engine VMs or GKE pods require a shared POSIX-compliant NFS file system mounted simultaneously across multiple nodes.
Can I combine Memorystore with Cloud SQL, AlloyDB, or Firestore?
Yes. Memorystore (for Redis, Valkey, or Memcached) is commonly deployed as a sub-millisecond read-through/write-through cache, session store, or rate-limiting layer in front of durable databases like Cloud SQL, AlloyDB, Cloud Spanner, or Firestore to absorb traffic spikes and deliver microsecond response times.
Validating a database migration from AWS, Azure, or Oracle?
Book a 20-minute call with an Aviato Google Cloud Principal Architect—assessments are often 100% Google-funded.
Talk to an architect who has done this before.
Bring your current setup and the outcome you need. You will get a view on the approach, the risks and roughly what it costs.
Straight to a senior GCP architect. No SDR, no slide deck.
Not ready to talk? See how we migrated Hapana off AWS →
Or call +61 2 8359 9507 · Hello@aviato.consulting