Amazon RDS Proxy is a fully managed, highly available database proxy for Amazon RDS (Relational Database Service) and Amazon Aurora.
Amazon RDS Proxy sits between the application and the database, helping to manage connections more efficiently and securely.
It's especially
useful in serverless or high-concurrency scenarios like Lambda, containers, or
bursty workloads.
Key Features
Feature |
Description |
Connection Pooling |
Reduces the overhead of
opening/closing database connections. |
Improved Scalability |
Handles thousands of client
connections without overloading the database. |
High Availability |
Automatically distributed across
multiple Availability Zones (AZs). |
IAM Authentication |
Works with AWS Identity and Access
Management (IAM) for authentication. |
TLS Encryption |
Secure connection between your app
and the database. |
Failover Support |
Works with Multi-AZ RDS/Aurora for
seamless failovers. |
Benefits
- Better Application Performance: Reduces latency caused by frequent DB connections.
- Stability Under Load:
Manages surges in connections (e.g., Lambda bursts).
- Security:
Integrates with AWS Secrets Manager & IAM.
- Operational Simplicity: No need to manage connection pooling in application
code.
Use Cases
- Serverless applications (e.g., AWS Lambda)
- Microservices with unpredictable workloads
- Applications with frequent open/close DB connections
- Multi-tenant SaaS platforms
How It Works
- Your application connects to the RDS Proxy endpoint.
- RDS Proxy maintains a pool of warm DB connections.
- Requests are routed through the proxy to the database
efficiently.
Supported Databases
- Amazon RDS for MySQL
- Amazon RDS for PostgreSQL
- Amazon Aurora MySQL-compatible
- Amazon Aurora PostgreSQL-compatible
Configuration Basics
How twtech set-up RDS Proxy:
- Go to the RDS Console → Proxies.
- Create a new proxy:
- Select DB engine and DB instance/cluster.
- Choose VPC and subnets.
- Provide IAM role and Secrets Manager secret.
- Point the application to the new proxy endpoint.
No comments:
Post a Comment