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

Persist queue: serialize/deserialize queue object in node-amqp

I'm using the node-amqp module to manage rabbitmq subscriptions. Specifically, I'm assigning an exclusive/private queue to each user/session, and providing binding methods through the REST interface. I.e. "bind my queue to this exchange/routing_key…
1
vote
2 answers

AMQP warning: possible EventEmitter memory leak detected. 11 listeners added.

Im recieving the following error in Node.js, I believe that it is related to AMQP. (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. Trace at…
RachelD
  • 4,072
  • 9
  • 40
  • 68
1
vote
1 answer

node.js subscriber client for rabbitmq (implements topics (ExcahangeName))

I am trying to write a node.js client(subscriber module) to consume messages from rabbitmq(AMQP). I am trying to implement topics (exchangeName) in rabbitmq. I am trying to use either (easy-amqp) or postwait for this task. I have written a…
1
vote
1 answer

Error handling exclusive queue subscription in node-amqp (node.js)

When you subscribe to an exclusive queue (only one consumer allowed at a time), node-amqp throws an exception when the queue is oversubscribed (already has a consumer). I've tried using the .on("error",cb) syntax. I've tried error domains (node…
DrFriedParts
  • 469
  • 10
  • 18
0
votes
0 answers

Can you have one consumer listen to multiple queues using AMQP/RabbitMq?

I currently have a pool of machines that produce widgets, and I am using RabbitMQ to route jobs to each machine based on a routing key using a topic exchange. For example, I can produce a message onto an exchange with a routing key of…
Simon Bowen
  • 31
  • 1
  • 3
0
votes
0 answers

Debug queue AMQP that loses messages using low prefetch

My ampq system seems loosing messages, so I'd like a way to see if messages are effectively queued before being consumed. I have several MicroServices communicating by amqp messages on NodeJs, using CloudAmqp. One of this microservice MS[B]…
DeLac
  • 1,068
  • 13
  • 43
0
votes
0 answers

RabbitMQ router connect with node getting Error: connect ECONNREFUSED 127.0.0.1:5672

const amqp = require("amqplib"); const config = require("./config/config"); class Producer { channel; async createChannel() { const connection = await amqp.connect(config.rabbitMQ.url); this.channel = await…
0
votes
0 answers

Can OAuth authorization be used while using amqp10 package for amqp protocol to connect solace broker in nodejs application

In my nodejs based application I am trying to connect solace broker using amqps protocol and package I am using is **amqp10 ** however I am unable to connect it. As per the doc I am creating the uri as…
anikpra
  • 1
  • 1
0
votes
0 answers

In rabbitmq message from a named queue is displayed as always ready, how can I delete a message from there after it is read by another queue?

In rabbitmq message from a named queue is displayed as ready and it is ackowledged by another queue which has topic exchange. In the following image I have 2 different queues, one named one generated randomly by rabbtmq: I know that I send one…
FaFa
  • 358
  • 2
  • 16
0
votes
1 answer

how can I limit the number of message of AMQP in one time of consume?

I am using node+typescript+amqplib to build a project with rabbitMQ cloud service, if the QUEUE have 5 messages to consume, I use the code : channel.consume(queue, (msg) => {... } to consume the messages, I will get all the 5 messages in one…
0
votes
1 answer

How to receive and handle messages from a Service Bus in a parallel mode using Node js

MS-(A) sends hundred of messages to a Azure service bus - topic, on the other side MS-(B) receives those messages by implementing AMQP subscribe this.subscription = this.receiver.subscribe({ processMessage: this.onMessage, …
alonabr11
  • 1
  • 1
  • 4
0
votes
1 answer

How could I increase consume timeout in rpc endpoint at rabbitmq?

I use RPC endpoints and in one of them I have the following problem: I do not receive a message so the callback function is not executed on channel.consume(). At that endpoint, I send a message, a process that takes time is running on the server…
glo
  • 75
  • 6
0
votes
1 answer

RabbitMQ memory management with Docker

I'm using the RabbitMQ management docker image. The issue is after around 1 week uptime, the disk space and the memory gets almost drained. I need to again terminate and restart it to function normally, but by doing so, all the existing messages in…
Pranesh A S
  • 331
  • 1
  • 7
0
votes
1 answer

Rabbitmq nodejs close connection

I have doubts about rabbitmq. I would like to know if when sending a "pub" message, I need to close the connection to the channel and the amqpblib connection, the same with the consumer? Or the correct thing is to leave the connection opened? I have…
0
votes
1 answer

How to change the default settings of RabbitMq to persist all messages and queues (Globally)

I know that i can specify the durable setting for each queue and persistent for every message manually. but i'm looking for a way to change the default behavior so everything (queues, messages, etc) will be persistent and durable. Setting this in a…
Omtechguy
  • 3,321
  • 7
  • 37
  • 71