Editorial question44.9K views2,626 votes0 answers504 following
AI-generatedREQUEST‑scoped Providers vs Custom Parameter Decorators for Per‑Request State
Decision Context The goal is to decide whether to use NestJS REQUEST‑scoped providers or custom parameter decorators for handling request‑local data such as authenticated user identity. Constraints include concurrent HTTP request handling, lifecycle management, and coupling between services. REQUEST‑scoped providers instantiate a new object per request and d