Database

Amazon RDS Proxy

Managed, serverless database proxy that pools and shares DB connections.

How it works

Amazon RDS Proxy is a managed database proxy between an application and a compatible database. It pools and reuses connections, reducing connection pressure when many short-lived tasks access the database. In some failover situations, the proxy can preserve application connections and reduce recovery time, but applications must still handle failures.

When to use it

Lambda or many short-lived connections overwhelm the database, or you need faster failover.

Real-world example

An online store uses AWS Lambda to process a sudden surge in orders. Its functions connect through RDS Proxy to benefit from pooled connections to a compatible PostgreSQL database.

Key facts

  • Reduces failover time by up to 66%.
  • Supports RDS (MySQL, PostgreSQL, MariaDB, SQL Server) and Aurora (MySQL, PostgreSQL).
  • IAM Authentication and Secrets Manager.
  • Never publicly accessible; used from a VPC.
  • Maintains a pool of established database connections to prevent thousands of concurrent Lambda executions from overloading the database.
  • Reduces Multi-AZ failover recovery time by up to 66% while preserving open application connections.
  • Supports IAM authentication and can use database credentials stored in AWS Secrets Manager or end-to-end IAM authentication.

Common pitfall

Do not assume the proxy eliminates all failover errors or connection limits. Applications still need error handling and retries; some sessions can be pinned to database connections.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • connection pooling
  • Lambda connections
  • reduce failover time
  • too many connections
  • Lambda to RDS

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning