NestJS · Middle · Question 17 of 75

What is a side effect of making a provider request-scoped?

Explanation

Scope bubbles up the injection chain. For per-request data like a request ID, AsyncLocalStorage (e.g. via nestjs-cls) is often a cheaper option.

Further reading

Problem with a question

NestJS · Middle · question 17

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz