Questions tagged [nestjs-microservice]

12 questions
1
vote
1 answer

Is Nest JS Microservice really a microservice?

I was wondering if we can build microservices application using Nest JS with separate repositories. All of the docs in Nest JS regarding microservices only support monorepo style and single database. I tried finding sources regarding Nest JS…
1
vote
0 answers

How to listen multiple queue in single microservice?

const app = await NestFactory.createMicroservice( AppModule, { transport: Transport.RMQ, options: { urls: [ `amqp…
Dilpesh
  • 216
  • 1
  • 8
0
votes
0 answers

NestJs setting up Typescript class properties asynchronously results in undefined

I have some microservices setup in NestJs using Typescript: one stores and retrieves configuration information: I am concerned with the client one. I am trying to set up a class that will make Axios requests for me. During it's construction, I would…
Rob
  • 341
  • 1
  • 3
  • 11
0
votes
0 answers

NestJS Microservices , how Web sockets come into play?

I am new to microservices and, I have a module, which have controller and some gateways as well, it handles both HTTP & WS Requests and this is a monolithic NestJS App, on port 3000 I am thinking of how it will unfold in terms of converting this…
0
votes
1 answer

NestJS microservice not sending message via .send

I'm new to @nestjs/microservices, and running into a weird issue. I have a setup of two apps written in Nest and checking the micro-service connection between them. For some strange reason, clientProxy.emit / @EventPattern works - but…
0
votes
0 answers

turborepo how can we run the latest projects in order

I have a microservice project created with turborepo. And I want the gateway to run last after the services run between these projects. I tried with dependsOn in turbo.json but it didn't work
0
votes
1 answer

Nestjs Microservice RabbitMq

I'm creating a microservice, where I need to receive messages from rabbit. I am facing the following error ERROR [Server] There is no matching event handler defined in the remote service. Event pattern: undefined main.ts import { NestFactory } from…
0
votes
1 answer

NestJS microservices: catch broker disconnection

In express-based applications, we can catch the broker error as following: mqttClient.on('reconnect', () => { console.log('reconnecting...'); // notify to sentry }) How do we handle such a thing in NestJS?
Vahid Najafi
  • 4,654
  • 11
  • 43
  • 88
0
votes
1 answer

Socket.io isnt updating its connection when using NestMicroservice

hello, so when i called the @EventPattern from NestMicroservice i also want to emit an event via socket.io: with this.websocketService.emitToRoom(...) import { Controller } from '@nestjs/common'; import { EventPattern } from…
0
votes
2 answers

How to use middleware with Microservice in Nestjs?

I'm trying to use middleware 'express-fingerprint' in my microservice application ? But i getting an error "Property 'use' does not exist on type 'INestMicroservice'.ts(2339)" ? How do i solve this? Here my code : async function bootstrap() { …
0
votes
2 answers

type of communication between microservices (injecting microservice)

I have API GATEWAY, user, role, mailer, user-role microservices. I have a question which type of development use more in production code: I should send event to createUser from gateway to userMicroservice, then if response OK, i will send another…
-1
votes
0 answers

NestJs Microservice with Kafka as transport layer, 2 producers and single consumer issue

I have 3 microservices communicating using kafka. gateway auth verification gateway has 2 modules (controllers) auth and verification to communicate with respective microservice. Both modules are producing messages for auth microservice on…