Interview practice question
Async service exhausts database connections
Backend Engineering · Concurrency · Experienced
Your async Python service handles thousands of concurrent requests, but the database pool has 20 connections, and requests time out waiting for connections. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Concurrency exceeds DB capacity.
- Limit concurrent DB work (semaphore).
- Shorter queries/transactions.
- Caching and batching.
- Timeouts with clear errors.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.