i have my thoughts but wasnted to check what ppl felt on approaching this question?
A Java based microservice faced a sudden increase in web traffic resulted in diminished API performance & DB connection failures.
Which solution will meet these requirements with the LEAST amount of change to the application to minimize the latency for the Lambda functions and to support bursts in traffic.?
1- Update the code of the Lambda functions so that the Lambda functions open the database connection outside of the function handler. Increase the provisioned concurrency for the Lambda functions.
2- Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the provisioned concurrency for the Lambda functions.
3- Create an RDS Proxy endpoint for the database. Store database secrets in AWS Secrets Manager. Set up the required IAM permissions. Update the Lambda functions to connect to the RDS Proxy endpoint. Increase the reserved concurrency for the Lambda functions.
Related discussions:
- AWS Lambda execution suspended 8 days after notifying AWS of a potential compromise on the root account. No response from support.
- Root user MFA failing.
- Just Cleared the DevOps Professional Exam (DOP-C02)
- Is Lambda still powered by Graviton2?
- All the AWS best practices in one Claude Code / Codex skill, so your agent doesn’t rely on stale memory or crawl docs every time