Hybrid Application

The hybrid application is an application that listens for HTTP requests, as well as makes use of connected microservices The INestApplication can be combined with the endless number of the INestMicroservice instances through connectMicroservice() method.

TypeScript

const app = await NestFactory.create(ApplicationModule);
const microservice = app.connectMicroservice({
  transport: Transport.TCP,
});

await app.startAllMicroservicesAsync();
await app.listen(3001);
  • Hybrid Application

Support us

Nest is an MIT-licensed open source project. It can grow thanks to the support by these awesome people. If you'd like to join them, please read more here.

Principal Sponsor

Sponsors / Backers