NestJS · Senior · Question 4 of 75

A REQUEST-scoped provider is injected into a singleton service. What happens?

Explanation

Scope bubbles up. In a busy app this can multiply allocations per request; durable providers or ALS are alternatives for multi-tenancy.

Further reading

Problem with a question

NestJS · Senior · question 4

Test yourself

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

Take this quiz