grafclouds.com / documents / training / devops-challenges / aws-rds-connection-storm

Lambda Is Exhausting Your RDS Connections. Raise the Limit?

Intermediate ~12 min read
AWSDatabases

Scenario

Your API runs on Lambda functions that talk to a single RDS instance sized for normal traffic. Each invocation opens its own fresh database connection. During traffic peaks, hundreds of Lambdas run concurrently, the connection count hits the ceiling, and requests start failing with "too many connections" errors. The failures are bursty, customer-visible, and getting more frequent as usage grows.

The Quick Fix on the Table

A teammate already has the RDS parameter group open and wants to crank up max_connections. One parameter, no code changes, and the errors stop — today, at least.

Interview · Round 1

The quick fix is on the table and the room is waiting for your call. Would you sign off on it? Take a position and justify it — out loud or on paper — before revealing the analysis.