NestJS / Intermediate: policies, adapters and sources

NestJS β€” Intermediate: policies, adapters and sources

Build testable custom providers and safe service boundaries.

6 lessons Β· No account required

What you will learn

  • Apply shared authorization, output projection and focused test overrides.
  • Review transaction and cache contracts without assuming framework guarantees.
  1. Custom providers, configuration and async startup

    Construct capabilities from validated configuration and make asynchronous readiness part of dependency ownership.

    Start learning
  2. Guards, principals and object authorization

    Build trusted principal context and apply shared domain policy across HTTP and non-HTTP entry points.

    Start learning
  3. Interceptors, observables and safe serialization

    Wrap result execution deliberately while preserving stream behavior, public shape and exception meaning.

    Start learning
  4. Testing overrides and composed request contracts

    Separate pure domain evidence, container compilation and real request-pipeline coverage.

    Start learning
  5. Repositories, transactions and persistence boundaries

    Keep database access behind tenant-aware domain contracts and place atomicity where the selected source can enforce it.

    Start learning
  6. Cache identity, freshness and source budgets

    Cache only a deliberate representation under the correct audience and bound the work needed to refill it.

    Start learning
Back to course