- Newest
- Most votes
- Most comments
Hello.
If you are using RDS MySQL etc., I thought it would be better to migrate to Aurora Serverless and use a mechanism that automatically scales up ACU etc.
Aurora Serverless can automatically scale up or scale down within a set range depending on the load.
It's probably possible to automatically scale up using Lambda, but it's not recommended as it's too complex to manage in code.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html
When using Lambda, steps such as stopping RDS, changing the instance size after stopping, and starting after changing are required, but if any one of these APIs fails, processing will stop at that point.
Automating scale-up with Lambda is not recommended because there are many considerations, as you also need to consider recovery in case of processing failure (notification in case of error, etc.).
