Interview Prep/AWS/Databases (Aurora, ElastiCache, DynamoDB design)

Lambda functions exhaust RDS connections during traffic spikes. How do you fix it?

IntermediateScenarioDatabases (Aurora, ElastiCache, DynamoDB design)
Answer

Put RDS Proxy between Lambda and the database, initialise connections outside the handler so warm invocations reuse them, cap function concurrency with reserved concurrency, and check the database's max_connections.

aws All AWS questions

More on Databases (Aurora, ElastiCache, DynamoDB design)