Interview practice question
Lambda functions overwhelm the database
System Design · Scalability · Intermediate
You moved an API to serverless functions. During a spike, the database hits its connection limit and fails. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Each function instance opens connections.
- Concurrency spike = connection spike.
- Use RDS Proxy or PgBouncer.
- Limit function concurrency.
- Or use HTTP-based/serverless DB.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.