nestjs-performance
Installation
SKILL.md
Performance Tuning
Priority: P1 (OPERATIONAL)
Workflow: Performance Audit
- Switch to Fastify — Replace Express with
FastifyAdapterfor ~2x throughput. - Enable compression — Add Gzip/Brotli middleware.
- Audit provider scopes — Ensure no unintended
REQUESTscope chains. - Add query projections — Use
select: []on all repository queries. - Profile overhead — Benchmark Total Duration, DB Execution, and API Overhead.
Fastify + Compression Setup
- Keep-Alive: Configure
http.Agentkeep-alive settings to reuse TCP connections for upstream services.