Open scastrec opened 8 years ago
I'm working on two servers communicating. First in Spring -> convertSendAndReceive. On NodeJS side, I receive the message and try to respond this way : (http://www.rubydoc.info/github/ruby-amqp/amqp/master/file/docs/PatternsAndUseCases.textile#Request_Reply_pattern)
q.subscribe(function (message, headers, deliveryInfo, messageObject) { console.log("received message from rabbit -> " + message); if(deliveryInfo.routingKey === route_start){ //event started var options = { correlationId : deliveryInfo.correlationId }; replyExchange.publish(deliveryInfo.replyTo, message, options, function(error){ console.log("debug replyExchange : " + error); }); } });
Do you implement a "better" way to use request/reply on rabbitMQ?
I'm working on two servers communicating. First in Spring -> convertSendAndReceive. On NodeJS side, I receive the message and try to respond this way : (http://www.rubydoc.info/github/ruby-amqp/amqp/master/file/docs/PatternsAndUseCases.textile#Request_Reply_pattern)
Do you implement a "better" way to use request/reply on rabbitMQ?