Use asyncio.Semaphore to limit concurrent DB calls to your pool size (e.g., 20). Combine with exponential backoff on pool_recycle=300 and max_overflow=5. Reject excess requests with 429 status instead of blocking. Monitor semaphore usage via Prometheus metrics. Ensures 99.9% uptime during 10x traffic spikes.​


.png)
