cd producer
npm i
npm run start:dev
cd consumer
npm i
npm run start:dev
-
request is defined and injectable
-
event listeners should be registered as microservice along with their queues (here)
-
inject ClientModule with queue name and then we can emit events to registered clients through ClientProxy
-
they don't need to be on the same module Also here event can be emitted from producer to consumer approve or workflow