This skill provides production-ready patterns for managing connection pools using SQLAlchemy, asyncpg, and aiohttp within asynchronous Python environments. It helps developers prevent connection leaks, handle high-traffic spikes, and implement proper resource cleanup using FastAPI lifespan events. By providing specific sizing formulas, health check configurations, and monitoring patterns, it ensures backend services remain stable, performant, and resilient under heavy load.
主要功能
01Performance-based pool sizing formulas and logic
0269 GitHub stars
03Connection health checks and pre-ping validation
04Optimized SQLAlchemy and asyncpg pool configurations
05Persistent aiohttp ClientSession management patterns
06Prometheus-based monitoring and troubleshooting guides