Questions tagged [node-amqp]

node-amqp is an AMQP client for nodejs.

AMQP 0-9-1 library and client for Node.JS.

This library does not implement AMQP 1.0 or AMQP 0-10.

Github: https://github.com/squaremo/amqp.node

105 questions
0
votes
3 answers

Queue routing to default exchange even when DLX argument set

Really confused here... Have a queue with dead letter props set... var amqp = require('amqp'), conn = amqp.createConnection(); var key = "batch.delay." + (new Date().getTime()).toString(); var options = { arguments: { …
Roy Kolak
  • 605
  • 1
  • 6
  • 18
0
votes
1 answer

Channels keep increasing for every exchange.publish() in RabbitMQ with node-amqp library

I'm using node-amqp library for my nodejs project. I also posted the issue to it's github project page. It keeps creating new channels and they stay idle forever. After an hour channels were ~12000. I checked the options for exchange and publish but…
hayzem
  • 67
  • 1
  • 8
0
votes
1 answer

How can I get a stack trace from my own code on errors in RabbitMQ subscription handler?

If an error is thrown inside a node.js function that handles incoming messages from RabbitMQ, the stack trace is from the node-amqp code instead of the one in my handler (and the error is commonly "cannot call method indexOf of undefined",…
Anders Bornholm
  • 1,326
  • 7
  • 18
0
votes
1 answer

amqp rabbitmq channel scope

I'm using amqplib with node.js and I'm trying to make sure I understand the concept of channels. This is from the amqplib documentation: Channels are multiplexed over connections, and represent something like a session, in that most operations (and…
Ryder Brooks
  • 2,049
  • 2
  • 21
  • 29
0
votes
1 answer

node-amqp — proper way to handle connection in Express app?

I'm using Express with node-amqp. My goal is to create amqpConnection and save it to global object before server starts and in Express routes use previously created globals.amqp_connection. ### server.coffee app.use( ... ) ... # create RabbitMQ…
f1nn
  • 6,989
  • 24
  • 69
  • 92
0
votes
0 answers

Storing RabbitMQ connection in NodeJs

I currently forced to create a new RabbitMQ connection every time a user loads a page on my website. This is creating a new TCP connection every time. However, i'm trying to reduce the number of TCP connections i make to Rabbit with the NodeJS AMQP…
Dani
  • 5,828
  • 2
  • 17
  • 21
0
votes
1 answer

RabbitMQ, EasyNetQ With NodeJS?

I'm trying to understand what's reasonable for integrating these technologies. How would I go about integrating NodeJS (currently using amqplib, but that could be changed) across RabbitMQ to EasyNetQ? I have it sort of working, except EasyNetQ is…
Michael
  • 4,010
  • 4
  • 28
  • 49
0
votes
1 answer

How to get existing queue parameters in nodejs amqp?

I'm using a send.js using amqplib: var rabbitMQ = require('amqplib'); rabbitMQ.connect('amqp://localhost').then(function(connection) { connection.createConfirmChannel().then(function(channel){ …
Renaud
  • 4,569
  • 7
  • 41
  • 72
0
votes
1 answer

node-amqp, multiple bind callbacks

I would like some pointers of best practice. I need to wait for a binding to complete before polling for data through it, and much of this happens in parallell all the way back to the client. But if there is already a binding operation in progress,…
Tom Erik Støwer
  • 1,399
  • 9
  • 19
0
votes
1 answer

RabbitMQ & node-amqp - default exchange doesn't confirm

I can't seem to get a confirm back when I publish to the default exchange. I'm currently using the master branch of node-amqp suggested by this post. Code: var amqp = require('amqp'); var conn = amqp.createConnection({ host: 'localhost'…
matth
  • 6,112
  • 4
  • 37
  • 43
0
votes
1 answer

node-amqp + rabbitMQ how to convert post request into message

I have express server setup to listen post request and put the post request in message queue var express = require('express'); var app = express(); app.use(express.bodyParser()); app.post('/test-page', function(req, res) { var amqp =…
king crusher
  • 87
  • 1
  • 8
0
votes
1 answer

Node.js+node_amqp.js can`t connect to ActiveMQ either 61616 or 5672 ports

need some advice. This is example, which I start on node.js: var amqp = require('amqplib'); amqp.connect('amqp://localhost:61616').then(function(conn) { conn.once('SIGINT', function() { conn.close(); }); return…
0
votes
1 answer

Callback parameters undefined in a callback running in Meteor

I have a bit of code where I want to get the current message count from RabbitMQ from my Meteor App. Running the code in Node console gives the callback parameters correctly, but the same code in Meteor only gives the first parameter. rabbitMQ =…
DataRiot
  • 476
  • 3
  • 8
0
votes
1 answer

Cannot send message using exchange in node-amqp

This is my code: var amqp = require('amqp'); var connection = amqp.createConnection( { host: 'localhost' }, { defaultExchangeName: 'testexchange' }); connection.on('ready', function () { console.log('Connected to rabbitmq'); var exchange =…
nfpyfzyf
  • 2,891
  • 6
  • 26
  • 30
0
votes
2 answers

Can I deal with four queues in one connection?

I have 2 publish queues and 2 subscribe queues, can I deal with four queues in on connection? connection = amqp.createConnection(); connection.on("ready", function () { subscribe(queue1,msg1); publishto(queue2,msg1); …
nfpyfzyf
  • 2,891
  • 6
  • 26
  • 30
1 2 3 4 5 6
7