Request-Scoped Providers in NestJS: A Must-Know for Developers

preview_player
Показать описание
Everything You Need to Know About Request-Scoped Providers in NestJS will be taught in this video, on top of a comparison with the default singleton behavior.

Timestamps:
--------------------
0:00 - How NestJs Handles Provider Creations & Lifetime
1:15- The Singleton Scope (Default Behavior)
2:53 - Request Scoped Providers
4:30 - Real Use case for Request Scoped Providers
11:45- Example 2 (Multi-Tenant Applications)
Рекомендации по теме
Комментарии
Автор

Thank you! Learning NestJs for a few days now. In my opinion Scope.REQUEST should be the default, and the current default should be something like Scope.SINGLETON or Scope.CACHED.

netsudro
Автор

Sir, Can I contact you, I need to ask and clarify my current ongoing prject related thing, currenlty I am university students, so I have question and blocker

mAthu