Below you will find pages that utilize the taxonomy term “NestJS”
Why You Should Avoid Using Request-scoped Injection in NestJS
NestJS 6 comes with all-new injection scope support. Namely, instead of enforcing every object managed by DI container to be a singleton, you can now freely assign three types of injection scope to them: singleton, request, and transient. We adopted the request-scoped injection in our project to achieve distributed tracing as well as context-aware logging. The result turned out to be not so great. For starters, the request-scoped injection is way too expensive.