Editorial question106.6K views2,292 votes0 answers1,561 following
AI-generatedChoosing between enlarging TypeORM connection pool and removing request-scoped QueryRunner for bursty traffic
Goal Identify the primary cause of intermittent connection pool exhaustion when a NestJS application using @nestjs/typeorm experiences bursty traffic. Constraints / Uncertainty The exhaustion could be caused by request‑scoped providers or per‑request QueryRunner instances that retain a checkout connection until the request finishes, making latency outliers i