executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
nestjs-performanceOptimize NestJS throughput with Fastify adapter, singleton scope enforcement, compression, and query projections. Use when switching to Fastify, diagnosing request-scoped bottlenecks, or profiling API overhead.
Independent GitHub snapshot · Automated classification · Original documentation governs
FastifyAdapter for ~2x throughput.REQUEST scope chains.select: [] on all repository queries.http.Agent keep-alive settings to reuse TCP connections for upstream services.SINGLETON scope (default).REQUEST scope unless absolutely necessary.durable: true) for multi-tenancy.LazyModuleLoader for heavyweight modules (e.g., Admin panels).@nestjs/cache-manager for computation results.Cache-Control headers for client-side caching (CDN/Browser).@nestjs/bull (BullMQ) or RabbitMQ (@nestjs/microservices).class-transformer CPU expensive.fast-json-stringify (built-in fastify serialization) instead of interceptors.select: [] to fetch only needed columns.relations carefully or DataLoader for Graph/Field resolvers.pool: { min: 2, max: 10 }) in config to match DB limits.Total Duration, DB Execution Time, and API Overhead.worker_threads.ClusterModule to utilize all CPU cores. In K8s, prefer ReplicaSets.worker_threads or BullMQ.select: [] needed columns to avoid serializing unused data.