FastAPI + Mangum on AWS Lambda: SQLAlchemy connection pool lifecycle during container reuse
Context A FastAPI application runs on AWS Lambda via the Mangum ASGI adapter with an async SQLAlchemy engine connected to Aurora Serverless v2. The engine is created at module level and its connection pool persists across warm Lambda invocations because Mangum reuses the same application instance. Goal Ensure the first request after an idle period (cold cont