Closed huynhanhkhoa2895 closed 1 month ago
Hi!
if you don't want to listen(port)
, why are you using NestFactory.create
instead of NestFactory.createMicroservice
? :thinking:
Hi!
if you don't want to
listen(port)
, why are you usingNestFactory.create
instead ofNestFactory.createMicroservice
? :thinking:
I also use kafka
I use
async function bootstrap() { await NestFactory.createApplicationContext(AppModule); console.log(
🚀 Kafka Consumer is running...); } bootstrap();
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
Is there an existing issue for this?
Current behavior
I try to run Queue in Microservice but it does not trigger processor when I remove
await app.listen(3001)
And Queue work correctly when I still use the
await app.listen(3001)
Minimum reproduction code
https://github.com/huynhanhkhoa2895/test-nestjs
Steps to reproduce
No response
Expected behavior
I don't want to use
await app.listen(3001);
because I don't need to open the port. I just want to use onlyawait app.startAllMicroservices();
Package
Other package
@nestjs/bull
NestJS version
10.0.0
Packages versions
Node.js version
20.12.1
In which operating systems have you tested?
Other
No response