Friday, September 30, 2022

AWS - DynamoDB Auto scaling

How DynamoDB auto scaling manages throughput capacity for a table.





  1. Create an Application Auto Scaling policy for your DynamoDB table.
  2. DynamoDB publishes consumed capacity metrics to Cloud Watch.
  3. If the table's consumed capacity exceeds your target utilization (or falls below the target) for a specific length of time, Cloud Watch triggers an alarm and you can view the alarm on the console and receive notifications using Amazon Simple Notification Service (Amazon SNS).
  4. Cloud Watch alarm invokes Application Auto Scaling to evaluate your scaling policy.
  5. Application Auto Scaling issues an UpdateTable request to adjust your table's provisioned throughput.
  6. DynamoDB processes the UpdateTable request, dynamically increasing/decreasing the table's provisioned throughput capacity so that it approaches your target utilization.

CI/CD - Safe DB Changes/Migrations

Safe DB Migrations means updating your database schema without breaking the running application and without downtime . In real systems (A...