Recall & Review
beginner
What is a hybrid application in NestJS?
A hybrid application in NestJS is an app that combines both HTTP and microservice capabilities in one project, allowing it to handle web requests and message-based communication simultaneously.
Click to reveal answer
intermediate
How do you create a hybrid application in NestJS?
You create a hybrid application by combining
create() for HTTP and connectMicroservice() for microservices in the same app instance.Click to reveal answer
beginner
Why use a hybrid application in NestJS?
Hybrid applications let you serve HTTP requests and listen to microservice messages in one app, reducing deployment complexity and enabling better resource sharing.Click to reveal answer
beginner
Which NestJS method allows adding microservice support to an existing HTTP app?
The
connectMicroservice() method adds microservice support to an existing HTTP application instance.Click to reveal answer
intermediate
What is important to remember about starting a hybrid NestJS app?
You must call
app.startAllMicroservices() to start microservices and app.listen() to start the HTTP server, ensuring both parts run properly.Click to reveal answer
What does a NestJS hybrid application combine?
✗ Incorrect
A hybrid application combines HTTP server and microservices in one app.
Which method adds microservice support to a NestJS app?
✗ Incorrect
The connectMicroservice() method adds microservice support to an existing app.
What must you call to start microservices in a hybrid app?
✗ Incorrect
app.startAllMicroservices() starts all connected microservices.
Why choose a hybrid app in NestJS?
✗ Incorrect
Hybrid apps combine HTTP and microservices in one app for simplicity.
Which NestJS method creates a standard HTTP app?
✗ Incorrect
The create() method creates a standard HTTP application.
Explain how to set up a hybrid application in NestJS and why it might be useful.
Think about combining two types of servers in one app.
You got /4 concepts.
Describe the lifecycle methods needed to run both HTTP and microservices in a NestJS hybrid app.
Starting both parts is necessary for the app to work fully.
You got /3 concepts.