Database
D2 · Resilient
D3 · Performance
D4 · Cost
~1 phút đọcRDS & Aurora — relational database managed
RDS cho MySQL/PostgreSQL/MariaDB/Oracle/SQL Server. Aurora là engine tương thích MySQL/Postgres với storage phân tán.
rds
aurora
multi-az
read-replica
rds-proxy
Sơ đồ tổng quan
Đang tải sơ đồ…
RDS Multi-AZ vs Read Replica
- Multi-AZ = HA, 1 standby synchronous cùng engine; failover tự động khi primary fail; KHÔNG dùng để scale read.
- Read Replica = scale read, async, tối đa 5 (MySQL/Postgres/MariaDB) hoặc 15 (Aurora). Có thể promote thành primary.
- Cross-region Read Replica dùng cho DR hoặc đưa read gần user.
- Multi-AZ Cluster (mới): 2 standby có thể đọc, giảm write latency.
Backup & encryption
- Automated backup 0-35 ngày, point-in-time restore.
- Manual snapshot giữ cho tới khi xóa, copy cross-region.
- Encryption KMS bật LÚC TẠO. Muốn mã hóa DB hiện hữu: snapshot → copy mã hóa → restore.
- TDE (Oracle/SQL Server) thêm lớp ở engine.
RDS Proxy
- Connection pooling, giảm failover time, dùng Secrets Manager.
- Phù hợp serverless (Lambda) hoặc app mở/đóng connection nhanh.
- Hỗ trợ MySQL, PostgreSQL, MariaDB, SQL Server.
Aurora điểm nổi bật
- Storage layer phân tán 6 copy trên 3 AZ, tự auto-heal.
- Auto scale storage 10 GB → 128 TB không downtime.
- Aurora Replicas: tối đa 15, failover giây.
- Aurora Global Database: primary region + up to 5 secondary region (RPO < 1s, RTO < 1 phút).
- Aurora Serverless v2: scale liên tục theo ACU, không downtime; v1 đã bị đẩy về Aurora Serverless v1 (deprecated).
- Backtrack (MySQL): 'tua lại' DB tới thời điểm trước đó mà không restore.
Nội dung liên quan
Flashcards liên quan