Integrating Amazon Aurora PostgreSQL-Compatible with heterogeneous databases and AWS services - AWS Prescriptive Guidance

Integrating Amazon Aurora PostgreSQL-Compatible with heterogeneous databases and AWS services

Rambabu Karnena, Amazon Web Services (AWS)

August 2024 (document history)

Amazon Aurora PostgreSQL-Compatible Edition offers integration with heterogeneous databases and various services on the Amazon Web Services (AWS) Cloud. You can use this integration to build scalable data architectures on AWS, unlocking new possibilities for your applications.

Overview

This guide provides a comprehensive overview of Aurora PostgreSQL-Compatible integration with AWS services and heterogeneous databases. If you currently run on Oracle Database or Microsoft SQL Server, explore Aurora PostgreSQL-Compatible features that are equivalent to linked servers, database links, and external tables. By using this guidance, you can also do the following:

  • Integrate with services such as Amazon Simple Storage Service (Amazon S3), AWS Lambda, Amazon CloudWatch Logs, and Amazon Redshift.

  • Avoid design mistakes that might lead to errors or performance issues.

  • Make informed decisions when integrating Aurora PostgreSQL-Compatible with other databases and AWS services.

Connecting to remote and heterogeneous databases

A key strength of Aurora PostgreSQL-Compatible is its ability to connect to remote PostgreSQL, SQL Server, and Oracle, MySQL databases by using foreign data wrappers (FDWs). These wrappers include postgres_fdw, oracle_fdw, tds_fdw (for SQL Server), and mysql_fdw. You can use these foreign data wrappers to query data from these multiple sources directly.

Logging

Aurora PostgreSQL-Compatible also integrates with Amazon CloudWatch Logs by using the log_fdw extension. You can use log_fdw to query and analyze PostgreSQL log files directly from the database. This integration streamlines log monitoring and analysis so that you can gain valuable insights into your database's performance, errors, and activities.

Connecting to storage

The aws_s3 extension integrates with Amazon S3 for data imports, exports, backups, and archiving. By supporting data movement between Aurora PostgreSQL-Compatible and Amazon S3, the aws_s3 extension enables efficient data ingestion, backup, and archiving processes.

Serverless compute

You can use the aws_lambda extension to improve performance and cost efficiency by offloading compute-intensive tasks to serverless AWS Lambda functions. Lambda supports complex computations, data transformations, and integrations with other AWS services directly from your Aurora PostgreSQL-Compatible database, without the need for dedicated compute resources.

Integrations for analytics

To facilitate data migration and ETL (extract, transform, and load) processes, Aurora PostgreSQL-Compatible can integrate with services such as AWS Database Migration Service (AWS DMS) and AWS Glue. AWS DMS supports the migration of databases to Aurora PostgreSQL-Compatible. AWS Glue helps you to build robust data-processing pipelines for transforming and loading data from various sources into Aurora PostgreSQL-Compatible or other AWS services.

For a data warehousing solution, Aurora PostgreSQL-Compatible can integrate with Amazon Redshift. By acting as a data source or staging area for Amazon Redshift, Aurora PostgreSQL-Compatible supports advanced analytics and reporting capabilities. You can use these capabilities to derive valuable insights from your data.

Whether you're migrating existing workloads, building hybrid architectures, or developing new data-driven applications, the integration capabilities of Aurora PostgreSQL-Compatible help you to create scalable, high-performance, and cost-effective solutions.

Additional extensions for integrating with AWS services

PostgreSQL lists various data wrappers for connecting to files, NoSQL databases, specific database systems. For more information, see the PostgreSQL documentation.

Objectives

This guide helps new customers, especially those who are migrating from Oracle or Microsoft SQL Server, to achieve the following:

  • Find equivalent features on AWS. Aurora PostgreSQL-Compatible provides functional equivalents to linked servers, database links, and external tables.

  • Design systems and batch jobs that integrate with and connect to heterogeneous databases and AWS services.

  • Avoid common design pitfalls and optimize infrastructure implementations.