[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/alloydb/docs/overview [Back]  [Original]

AlloyDB overview  |  AlloyDB for PostgreSQL  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

AlloyDB overview Stay organized with collections Save and categorize content based on your preferences.

AlloyDB for PostgreSQL is a fully managed, PostgreSQL-compatible database service. It pairs a Google-built database engine with a cloud-based, multi-node architecture to deliver enterprise-grade performance, reliability, and availability for your most demanding applications.

Use cases for AlloyDB

AlloyDB provides a scalable alternative to self-managed PostgreSQL. Use AlloyDB if you want to spend less time managing infrastructure and more time building applications.

AlloyDB is designed for demanding workloads, including:

What AlloyDB provides

AlloyDB offers many services so you don't have to build and maintain them yourself. You can focus on your data and let AlloyDB handle the following operations:

Database administration

AlloyDB manages the underlying infrastructure of your database, such as automated backups, security patches, and resource allocation. However, AlloyDB is not a standalone database administration tool. You still need administrative tools to manage the schemas, data, and users within your databases.

You can use the following tools to connect to and manage your databases:

AlloyDB pricing

AlloyDB uses a consumption-based pricing model, meaning you are billed for the resources you use. AlloyDB pricing varies based on your configuration settings and depends on the following factors:

For more detailed information, see the AlloyDB for PostgreSQL pricing

How AlloyDB works

An application connects to AlloyDB instances using standard PostgreSQL protocols.

Under the surface, AlloyDB uses a disaggregated architecture and a hierarchy of resources designed to maximize availability and performance.

Architectural difference from standard PostgreSQL

Traditional PostgreSQL couples the database engine that processes queries with storage on the same server. AlloyDB uses a disaggregated architecture, where compute and storage layers are separate and scale independently.

AlloyDB resource hierarchy

AlloyDB organizes its resources into three levels: clusters, instances, and nodes.

The following diagram illustrates the AlloyDB resource hierarchy, featuring a cluster scaled with a primary instance and multiple load-balanced read pool instances:

Diagram showing a cluster containing a primary instance and read pool instances [Diagram showing a cluster containing a primary instance and read pool instances]

What is an AlloyDB instance?

An AlloyDB instance is the access point for your database. Each instance has a private, static IP address in your VPC. When your application sends a query to this IP address, the instance routes the request to its underlying nodes for processing.

AlloyDB uses two types of instances:

Key features

AlloyDB distinguishes itself from a stock PostgreSQL installation in a number of ways beyond the vertical and horizontal scaling advantages inherent in the multi-node architecture described earlier. The following sections take a deeper look at key features of AlloyDB.

Automatic and adaptive database features

The fully PostgreSQL-compatible database engine that powers every AlloyDB node has several features that continuously analyze the structure and frequency of the queries that your instances handle, using this information to suggest schema improvements or automatically apply optimizations:

High availability

By default, an AlloyDB cluster offers availability (HA) through its primary instance's redundant nodes, located in two different zones, with automatic failover.

Clusters operating in non-production environments that don't require HA can optionally use basic, single-zone primary instances instead.

Adding read pool instances containing at least two nodes creates further load-balanced, multi-zonal, high-availability access points to your data. All read pool instances run independently of the primary instance.

For more information about region-specific considerations, see Geography and regions.

Data backup and disaster recovery

AlloyDB features a continuous backup and recovery system that lets you create a new cluster based on any point in time within an adjustable retention period. This lets you recover quickly from data-loss accidents.

In addition, AlloyDB can create and store complete backups of your cluster's data, either on demand or on a regular schedule. At any time, you can restore from a backup to a new AlloyDB cluster that contains all the data from the original cluster at the moment of the backup's creation.

For more information, see About backups.

As a further method of disaster recovery, you can achieve cross-region replication by creating secondary clusters in separate Google Cloud regions. AlloyDB asynchronously streams data from a designated primary cluster to each of its secondary clusters. At any time, you can promote a secondary cluster into a primary cluster, or perform a cross-region failover (Preview) to automatically maintain your replication topology during an outage.

For more information, see About cross-region replication.

Security and access control

You can configure a cluster to require connection with the secure AlloyDB Auth Proxy, which uses Google Cloud Identity Access and Management (IAM) for access control. For more information, see Authorization.

AlloyDB uses the standard PostgreSQL user role system for authentication, introducing a handful of additional roles specific to AlloyDB. For more information, see Manage AlloyDB user roles.

Encryption

AlloyDB protects all data at rest using Google's encryption methods by default. If you instead need to encrypt your data using a key that you provide, then you can specify a customer-managed encryption key (CMEK) when creating a cluster. AlloyDB then uses the CMEK key to encrypt all data written to that cluster.

CMEK also applies to backups. You can specify a CMEK key when creating an on-demand backup, configuring a backup schedule, or restoring from a backup.

For more information, see About CMEK.

Maintenance and updates

Over the life of an AlloyDB cluster, two kinds of updates can occur:

AlloyDB maintenance operations are designed to be non-disruptive. This is accomplished by preparing replacement servers and quickly swapping them with the active servers when ready. During this process, primary instances typically experience less than a second of downtime, while read pools remain continuously available. Any active connections to the database are momentarily dropped, but you can continue using your database normally throughout the process.

If you want to apply an update immediately even if it means a longer downtime, you can use the FORCE_APPLY database flag.

AlloyDB AI

AlloyDB AI integrates a suite of AI and ML features directly into your AlloyDB database. Historically, building AI applications required complex data pipelines and ETL processes to move data from operational databases to specialized AI/ML platforms. This method led to challenges such as increased latency from data transfer, higher operational overhead from managing different systems, and duplicate storage. By integrating AI capabilities directly into the database, AlloyDB AI removes the need for extensive external data movement.

To facilitate the development of AI applications, AlloyDB AI provides the following extensions:

For a list of use cases for AlloyDB AI capabilities, see Build generative AI applications.

Extension support

AlloyDB includes support for a number of popular PostgreSQL extensions. For the full list, see Supported database extensions.

A self-hosted alternative: AlloyDB Omni

As an alternative to running AlloyDB within Google Cloud, Google offers AlloyDB Omni. This streamlined, downloadable edition of AlloyDB lets you run its powerful database engine on your own Linux-based computing environment, wherever that might be.

For more information, see About AlloyDB Omni.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-14 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-14 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page