Hybrid applications — Microservices · NestJS

One application, two doors: the gateway keeps serving HTTP and also listens on TCP for the events the cats service publishes, sharing its global pipe with the messages through inheritAppConfig.

What you will learn

Read the theory for Hybrid applications

All Microservices lessons

All NestJS courses

loading types…

What you'll learn

  • Make an HTTP application listen on a transport too, with connectMicroservice() and startAllMicroservices(), and know the order they must run in
  • Handle messages or events in the same controllers that serve routes
  • Know that global pipes, guards, interceptors and filters apply to a connected microservice only with inheritAppConfig
  • Let a service publish events to the apps that care, with a client pointing back at them