Questions tagged [node-amqplib]

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

87 questions
0
votes
0 answers

What loader syntax is needed in the webpack.config.js for this module?

I am using React and attempting to run my application, which also includes the ampqlib module. On the start I am receiving the error: Module parse failed: Unexpected token (2:8) You may need an appropriate loader to handle this file type, currently…
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
1 answer

Getting too many channels error for a period of time

I have 16 queues & mulitple consumer servers for those queues. I have created one dedicated channel for each queue to consume messages. Consumer & dispatch channels on each server share same connection. When I dispatch messages to each queue, I do…
Khairul
  • 79
  • 5
0
votes
0 answers

amqp library is thread-safe in node.js?

RabbitMQ recommends not sharing channels between threads. 3. Don’t share channels between threads. Don’t share channels between threads, as most clients don’t make channels thread-safe for performance reasons. And libuv inside Node.js either makes…
0
votes
0 answers

RabbitMQ Message deduplication working in localhost but not in CloudAMQP

I installed RabbitMQ with the message deduplication plugin on my localhost and deduplication worked out of the box without me having to explicitly specify an exchange. The moment I opted for CloudAMQP and installed the Message Deduplication plugin,…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
0 answers

Performance with RabbitMQ and Nodjes

I am developing an application where I am listing to incoming RabbitMQ messages. I am using Node.JS and the amqplib library. As my process manager I use pm2. I am listening to a topicExchange from RabbitMQ and there a multiple variants of topics…
Bernd Loigge
  • 1,647
  • 1
  • 14
  • 17
0
votes
1 answer

amqplib & AWS MQ: Socket closed abruptly during opening handshake

So the current issue I have is that before I was able to connect properly to my rabbitMQ cluster that was hosted on AWS MQ. After I changed its IP visibility to private I had to create some configuration to access the cluster from outside the…
0
votes
1 answer

How to set the a redelivery time for RabbitMQ

I'm trying to understand how to set the redelivery time for basic.nacked messages. Some important info is that I'm using quorum queues with a redelivery amount of 5 times. Consider the following scenario: What is happening Now: Producer sends…
0
votes
1 answer

RabbitMQ Maximum number of queues bind to single exchange

What is the maximum number of Queue bind to a single exchange in RabbitMQ? also what are the recommended number of messages that one exchange can handle without significant performance impact?
Eli Zatlawy
  • 678
  • 10
  • 24
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

amqplib not connecting to localhost RabbitMQ

I went through several SO threads regarding this. Didn't work anything. But my case is different. In my case, nothing happens. Here is the code: import amqplib from 'amqplib' const AMQP_URL = 'amqp://guest:guest@localhost:5672/' const…
iamcrypticcoder
  • 2,609
  • 4
  • 27
  • 50
0
votes
1 answer

How to check if channel that i have created using rabbtimq is active or not?

I am using amqplib for connection of rabbitmq. in that i am starting one connection and then i have created channel of that connection. and after establishing connection i do not close the channel and connection as well, in short i open them for…
0
votes
1 answer

Close consumer connection to AMQP library in Nodejs

I use AMQP for my application. I want to close the connection to the consumer AMQP after all the message queues have been received. However, I don't know how to handle it. I will be very grateful and appreciated if someone help me. Thank you var…
0
votes
1 answer

How to propagate context between two services communicating via rabbitmq in opentelemetry?

I am trying to find a way to propagate context between two services communicating via rabbitmq in opentelemetry. There was an article for doing similar in Go article link but unable to implement it in node. There are two approaches I am…
Kunal Chauhan
  • 13
  • 1
  • 4
0
votes
1 answer

sendToQueue() of amqplib doesn't throw any error even if the queue does't exist

I created a queue named 'test_queue' with amqplib then I deleted the 'test_queue' from the admin page of rabbitmq (http://localhost:15672/#/queues) but when I excute the following code, it shows 'sent message successfully!' there is no error even…
s1610231
  • 87
  • 1
  • 1
  • 5