|
5 | 5 | date: 19th July 2025 |
6 | 6 | done: false |
7 | 7 | --- |
8 | | - |
9 | 8 | > Cost 20% more than RDS, delivers 5x and 3x performance improvement for MySQL and Postgres respectively |
10 | 9 |
|
11 | 10 | - Cloud Optimised, or AWS Optimised |
12 | 11 | - Drop in replacement for MySQL and Aurora (The drivers will work) |
13 | 12 | - Automatically grows upto 128TB from 10GB, no need to worry about size |
14 | 13 | - Can have upto 15 replicas, in sub-ms replica lag |
15 | 14 | - HA Native, Failover is instant |
16 | | - |
17 | 15 | # HA |
18 | 16 | - 6 Copies of data across 3 AZ |
19 | 17 | - Self healing in peer-to-peer replication |
20 | 18 | - One master instance takes the reads + 15 RR |
21 | 19 | - When primary instances fail, Aurora failovers to one of the reader instances |
22 | | -- Reader instances are replicated in sync |
23 | | - |
| 20 | +- Reader instances are replicated in async |
24 | 21 | - Continuos backup to s3 |
25 | | - |
26 | 22 | # Aurora DB Cluster |
27 | 23 | - Writer endpoint is a dns name, when the master fails the dns points to the right master after failover |
28 | | -- Autoscaling canb e setup for Read replicas, Aurora has reader endpoint also. |
29 | | - |
| 24 | +- Autoscaling can e setup for Read replicas, Aurora has reader endpoint also. |
30 | 25 | # Aurora Backups and Restore |
31 | 26 | - PITR latest 5mins |
32 | 27 | - Retention perios 1-35 days, no disabling |
33 | | - |
34 | 28 | # Aurora Backtracking |
35 | 29 | - In Place restore, unlike backup |
36 | | - |
37 | 30 | # Aurora DB cloning |
38 | 31 | - Copy on write protocol |
39 | 32 | - Testing with prod data |
40 | 33 | - Old data: |
41 | | - |
42 | 34 | # Encryption |
43 | 35 | - Using KMS |
44 | 36 | - If master is not encyrpted, then rr can't be encrypted |
45 | 37 | - To encrypt an unencrypt db, you'll need to backup and restore with encryption |
46 | | - |
47 | 38 | # Failover |
48 | 39 | - Assign a priority tier on a read replica |
49 | 40 | - If two has the priority, auroro promotes the largest one. |
50 | 41 | - If both have same cap, then random |
51 | | -- RDS can be moved to Auroro |
| 42 | +- RDS can be moved to Auroro |
0 commit comments