NestJS / Intermediate: policies, adapters and sources
NestJS β Intermediate: policies, adapters and sources
Build testable custom providers and safe service boundaries.
What you will learn
- Apply shared authorization, output projection and focused test overrides.
- Review transaction and cache contracts without assuming framework guarantees.
Custom providers, configuration and async startup
Construct capabilities from validated configuration and make asynchronous readiness part of dependency ownership.
Start learningGuards, principals and object authorization
Build trusted principal context and apply shared domain policy across HTTP and non-HTTP entry points.
Start learningInterceptors, observables and safe serialization
Wrap result execution deliberately while preserving stream behavior, public shape and exception meaning.
Start learningTesting overrides and composed request contracts
Separate pure domain evidence, container compilation and real request-pipeline coverage.
Start learningRepositories, transactions and persistence boundaries
Keep database access behind tenant-aware domain contracts and place atomicity where the selected source can enforce it.
Start learningCache identity, freshness and source budgets
Cache only a deliberate representation under the correct audience and bound the work needed to refill it.
Start learning