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
1 answer

strange low performance sending messages to queue with amqplib?

I'm trying to test Rabbitmq latency with amqp.node (https://github.com/squaremo/amqp.node). This is the consumer: import amqp from 'amqplib'; amqp.connect('amqp://localhost').then((connection) => { connection.createChannel().then((channel) => { …
TlmaK0
  • 3,578
  • 2
  • 31
  • 51
0
votes
0 answers

RabbitMQ Hold the queue

I want to hold the rabbitMQ queue and then combine the previous transactions of the queue which were paused. Suppose I have a limit that after only 5 transactions I will proceed. I want to combine these 5 transactions and acknowledge the channel…
yash vadhvani
  • 329
  • 2
  • 12
0
votes
1 answer

nodejs and rabbitmq app , do i pass around the rabbit connect

i am creating a new nodejs service that is going receiving requests from the frontend , placing that request on rabbitmq, then wait for the response from a microservice that handles that request and then sending the response back to the requesting…
randy
  • 1,685
  • 3
  • 34
  • 74
0
votes
2 answers

node-amqp, limit the socket time for listening events

Assuming that I like 100000 events on my rabbitmq queue, what is the best way to limit a system to handle them in series vs trying to consume all at once? I'm trying several options, however, the machine freezes trying to handle them all at once.
andresmijares
  • 3,658
  • 4
  • 34
  • 40
0
votes
1 answer

Closing amqp promise connection after publishing?

I'm trying to work out how to close my promise based connections after publishing messages. I've tried to extrapolate away shared code for my sender and my receiver, so I have a connection file like this: connector.js const amqp =…
Jarede
  • 3,310
  • 4
  • 44
  • 68
0
votes
1 answer

Task queuing in RabbitMQ

I'm trying to setup task queuing with rabbitMQ, coupled to Node.js & React.js. I'm having trouble understanding how the task management actually works, and I cannot find a good example online. I'm trying to send a task (like generate a lot of images…
DrunkDevKek
  • 469
  • 4
  • 17
0
votes
1 answer

RabbitMQ / amqplib: Get wildcard binding key for message

When consuming a message from a queue, I would like to retrieve the binding key (with wildcards) that was used to bind that queue to the exchange. Is this possible somehow? Thanks
Drew R
  • 2,988
  • 3
  • 19
  • 27
0
votes
1 answer

Implementing fanout strategy using senecajs

I am developing a node.js social networking application using senecajs and need to implement a scenario where a producer can send the same message to multiple consumers. I found an article that seems to illustrate sample code for pulling this off…
user1790300
  • 2,143
  • 10
  • 54
  • 123
0
votes
0 answers

Node js concurrency with amqp

I am writing one node js service which receives messages using rabbitmq. But I am facing one issue when I am trying to send concurrent requests to my node js service. Here is amqp subscriber I have written, const amqp =…
Pandurang Waghulde
  • 995
  • 1
  • 6
  • 19
0
votes
1 answer

How to expire rabbitmq message using amqp.node

This is my code: const amqp = require('amqplib'); amqp.connect().then((conn) => { var ok = conn.createChannel(); ok = ok.then((ch) => { ch.assertQueue('myFirstQueue', { arguments: { messageTtl: 1000 } …
emilioriosvz
  • 1,629
  • 1
  • 19
  • 30
0
votes
1 answer

Error: read ETIMEOUT occurring after some time with node-amqp

I have a VM with a RabbitMQ instance running, and a separate VM with a Node process that will consume things off of a queue. After some time of inactivity, my Node process will just quit and display an error. I have forever keeping the Node process…
0
votes
1 answer

can the amqplib nodejs package be used ONLY for rabbitmq or for any AMQP communication?

The RabbitMQ website has a getting started tutorial for Javascript NodeJS where it asks to use the amqplib package npm install amqplib https://www.npmjs.com/package/amqplib. However, the the amqplib package looks like it's more generic rather than…
Rakib
  • 12,376
  • 16
  • 77
  • 113
0
votes
1 answer

Error: Can't set headers after they are sent. RabbitMQ interfering with NodeJS response

After a http response, I am sending a messing using RabbitMQ (creating a channel etc) and however, the server is complaining that "Error: Can't set headers after they are sent." Here is the code: var amqp = require('amqplib'); var when =…
user1640492
0
votes
1 answer

nodejs amqp can only receive message once

var amqp=require('amqp'); var conn=amqp.createConnection({/**/}); conn.on('ready',function() { console.log('Server Connected'); conn.exchange('order',options={type:'topic'},function(exchange) { console.log('Exchange…
Qiaosen Huang
  • 1,093
  • 1
  • 10
  • 25
0
votes
0 answers

RabbitMQ (via node-amqp) : Unhandled connection error: UNEXPECTED_FRAME - expected content header for class 60, got non content header frame instead

I am using node-amqp to connect to RabbitMQ. The setup is as follows: two RabbitMQ servers ("rabbits" henceforth), one called "incoming" the other "notifier". Data is published to the "incoming" rabbit, and my app buffers (the "buffer" app) a…
GTF
  • 8,031
  • 5
  • 36
  • 59