- Newest
- Most votes
- Most comments
Hello.
Is RDS Proxy really necessary? Since the database is on Aurora Serverless, wouldn't the automatic scaling handle the increase in connections?
I don't think the number of connections to the database will scale automatically.
I think that by default, the number of connections calculated from the memory usage rate set in the maximum ACU is applied.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.parameters-based-on-max-capacity
When Aurora Serverless v2 evaluates the formula, it uses the memory size based on the maximum Aurora capacity units (ACUs) for the DB instance, not the current ACU value. If you change the default value, we recommend using a variation of the formula instead of specifying a constant value. That way, Aurora Serverless v2 can use an appropriate setting based on the maximum capacity.
Can we skip the RDS proxy if we make sure that the lambda code properly manages and closes the connections?
I think it depends on how you use Lambda, but for example, if you are using it in a way where processes are executed simultaneously, the number of connections should increase, so I think there is an advantage to using RDS Proxy.
What is the reason why 200 connections per second is the threshold for IAM authentication as per this piece of documentation?
I think this is probably a restriction to avoid throttling errors in IAM processing.
IAM itself is managed by AWS, but if multiple AWS users send a large number of requests to IAM, it is inevitable that errors will occur due to the load.
I suspect that this is why there are restrictions in place.
https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/control-planes-and-data-planes.html
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago