What is PolarDB for PostgreSQL (Compatible with Oracle)
PolarDB is a next-generation cloud native database developed in-house by Alibaba Cloud. Built on a compute-storage separation architecture, it combines the strengths of software and hardware to provide a database service with second-level elasticity, high performance, massive storage, and secure, reliable operation.PolarDB for PostgreSQL (Compatible with Oracle) is highly compatible with Oracle syntax.
PolarDB for PostgreSQL (Compatible with Oracle) uses a compute-storage separation architecture in which all compute nodes share a single copy of data. It provides configuration upgrades and downgrades in minutes, fault recovery in seconds, global data consistency, and free data backup and disaster recovery services.PolarDB for PostgreSQL (Compatible with Oracle) combines the stability, high performance, and scalability of commercial databases with the simplicity, openness, and rapid iteration of open source cloud databases.
Compute and storage are separated, with shared distributed storage.
The compute-storage separation design meets the elastic scaling needs of your workloads. All compute nodes share the underlying storage (PolarStore) through a distributed file system (PolarFileSystem), which significantly reduces your storage costs.
One writer node serves multiple reader nodes, and reads are split from writes.
PolarDB for PostgreSQL (Compatible with Oracle) uses a multi-node cluster architecture. A cluster contains one primary node (read/write) and at least one read-only node. When an application uses the cluster endpoint, PolarDB for PostgreSQL (Compatible with Oracle) provides services through an internal proxy layer (PolarProxy). Every application request passes through the proxy before it reaches a database node. The proxy layer handles security authentication and protection. It also parses SQL statements, sends write operations to the primary node, and distributes read operations evenly across multiple read-only nodes to achieve automatic read/write splitting. For your application, using the cluster is as simple as using a single-node database.
Benefits
You can use PolarDB for PostgreSQL (Compatible with Oracle) just as you use Oracle. In addition, PolarDB for PostgreSQL (Compatible with Oracle) provides the following benefits that traditional Oracle databases do not:
Large capacity
The default storage capacity is up to 500 TB. You no longer need to purchase multiple instances and shard your data to work around the capacity ceiling of a single node. This simplifies application development and reduces the operations burden.
NotePolarStore (PSL4/PSL5) supports petabyte-level storage. If you require petabyte-level storage, Contact us to reserve the corresponding resources.
Low cost
Shared storage: Compute and storage are separated. Each read-only node that you add is billed only for compute resources. A traditional read-only node contains both compute and storage resources, so each read-only node that you add also incurs a storage fee.
Elastic storage: You do not need to provision storage capacity. Storage scales automatically with your data volume, and you pay by the hour only for the data volume that you actually use.
Storage plans: PolarDB for PostgreSQL (Compatible with Oracle) offers subscription storage plans. If your data volume is large, use a storage plan. Compared with hourly billing, a subscription storage plan is discounted. The larger the capacity that you purchase, the greater the discount.
High performance
The database significantly improves OLTP performance and supports more than 500,000 read requests per second and more than 150,000 write requests per second.
Scaling within minutes
The compute-storage separation architecture, together with container and virtualization technology and shared storage, lets you add or remove a node in only 5 minutes. Storage capacity expands online automatically without interrupting your services.
Read consistency
The cluster endpoint uses the Log Sequence Number (LSN) to guarantee global consistency when data is read. This avoids inconsistencies caused by latency between the primary node and read-only nodes.
Millisecond-level latency (physical replication)
Physical replication based on redo logs replaces logical replication based on binary logs, which improves the efficiency and stability of replication between the primary node and read-only nodes. Even DDL operations on large tables, such as adding an index or a column, do not cause database latency.
Fast backup within seconds
A full database backup takes only 30 seconds, regardless of the data volume. The backup process does not lock the database and has almost no impact on applications, so you can run backups 24 hours a day.
Cross-node parallel execution
SQL statements can run in parallel across multiple nodes. This cross-node parallel execution makes full use of the CPU, memory, network, and other hardware resources of all compute nodes to improve analytical query performance. For details, see What is cross-node parallel query.
Pricing
For details, see Billable items and Purchase PolarDB clusters.
Usage
You can manage PolarDB for PostgreSQL (Compatible with Oracle) clusters in the following ways, including creating a cluster, creating a database, and creating an account.
Console: Provides a graphical web interface that is easy to use.
CLI: You can perform all operations that are available in the console by using the command-line interface (CLI).
SDK: You can perform all operations that are available in the console by using the software development kit (SDK).
API: You can perform all operations that are available in the console by calling the API.
After you create a PolarDB for PostgreSQL (Compatible with Oracle) cluster, you can connect to the PolarDB for PostgreSQL (Compatible with Oracle) cluster in the following ways:
DMS: You can connect to a PolarDB cluster by using DMS to perform database development in a web interface.
Client tools: You can use a common database client tool to connect to a PolarDB for PostgreSQL (Compatible with Oracle) cluster, such as pgAdmin.
Key concepts
Understanding the following concepts helps you select and use PolarDB for PostgreSQL (Compatible with Oracle) more effectively:
Cluster: PolarDB for PostgreSQL (Compatible with Oracle) uses a cluster architecture. A cluster can contain one primary node and up to 15 read-only nodes.
Region: A region is a physical data center. In most cases, the PolarDB for PostgreSQL (Compatible with Oracle) cluster should reside in the same region as your ECS instance to achieve the best access performance.
Zone: A zone is a physical area within a region that has independent power and network facilities. Different zones within the same region have no substantive differences.
Specification: The resource configuration of each node, for example, 2 cores and 8 GB of memory.
Related services
ECS: ECS is a cloud server. When you access a PolarDB for PostgreSQL (Compatible with Oracle) cluster in the same region over an internal network, you achieve the best performance of the PolarDB for PostgreSQL (Compatible with Oracle) cluster. Deploying ECS together with a PolarDB for PostgreSQL (Compatible with Oracle) cluster is a typical business access architecture.
Redis: Redis provides a persistent in-memory database service. When your business traffic is high, the combination of ECS, PolarDB for PostgreSQL (Compatible with Oracle), and Redis supports more read requests while reducing response time.
MongoDB: MongoDB provides a stable, reliable, and elastically scalable database service that is fully compatible with the MongoDB protocol. When your data structures are diverse, you can store structured data in PolarDB for PostgreSQL (Compatible with Oracle) and unstructured data in MongoDB to meet the diverse storage needs of your business.
DTS: You can use Data Transmission Service (DTS) to migrate an on-premises database to a PolarDB for PostgreSQL (Compatible with Oracle) cluster in the cloud.
OSS: Object Storage Service (OSS) is a massive, secure, low-cost, and highly reliable cloud storage service provided by Alibaba Cloud.