Handler cannot receive messages published in topic exchange in a microservice architecture #852
-
Hey folks, I am trying to send a message from driver microservice to audit-log in NestJS with Read the import { Channel, connect, Connection } from 'amqplib';
const connection = await connect('amqp://rabbitmq:password@localhost:5672');
const channel = await this.connection.createChannel();
channel.consume(
'audit_log.logs',
(message) => {
console.log(`Message for "${AUDIT_LOG_QUEUE}"`);
console.log(message?.content?.toString());
},
{ noAck: false },
); Another note is that when I activate Firehose Tracer it shows that messages are published and delivered to the right queue. My problem is that NestJS is not calling handlers that I've defined. Any form of help is appreciated ❤️. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved: #851 |
Beta Was this translation helpful? Give feedback.
Solved: #851