AMQP 0-9-1 library and client for Node.JS
Questions tagged [node-amqplib]
87 questions
0
votes
1 answer
amqp client doesn't show that RabbitMQ server connection is blocked
I run RabbitMQ image in docker-compose like this:
version: '2.2'
services:
rabbitmq:
networks:
- private
image: rabbitmq:3.8.0-beta.3-management
ports:
- 15672:15672
Then connect to via other Node.js app like this:
const…

John Glabb
- 1,336
- 5
- 22
- 52
0
votes
1 answer
how to delete messages from a Queue in RabbitMQ immediately after they ve been sent
So I started using RabbitMQ and doing the Tutorials on the Website https://www.rabbitmq.com/tutorials/tutorial-one-javascript.html but i didnt 100% understand how can the aknowledge feature be set so that a Queue will delete the message immediately…

Nidhal Baccouri
- 47
- 2
- 9
0
votes
0 answers
What is the meaning of RabbitMQ Exchange from performance perspective
I have tried to find an answer but couldn't find anything solid.
Let's say i have system that split to 3 modules.(Just an example)
Users
Products
Orders
I can create 3 Exchanges, 1 for each module.(Assuming they are all the same type)
Or i can…

Aviad
- 1,539
- 1
- 9
- 24
0
votes
1 answer
How do I access RabbitMQ natively without IP address using amqplib?
Where I work we have a cloudfoundry server that provides RabbitMQ as a service. When I configure this service and try to connect using amqplib via (localhost, 127.0.0.1, etc) it doesn't connect. When I look at the Java project, it never configures…

JGleason
- 3,067
- 6
- 20
- 54
0
votes
0 answers
How to connect asmq channel in remote machine. amqp.connect()
i am able to connect to asmq channel using rabbitmq in my local machine using below code.
but i want to connect to this channel in different machine and receive data.
amqp.connect('amqp://localhost', function (err, conn) {});
0
votes
1 answer
Async/await confusion using singeltons
So no matter what I've read, even once I do it right, I can't seem to get the the hang of async and await. For example I have this in my startup.
startup.js
await CommandBus.GetInstance();
await Consumers.GetInstance();
Debugging jumps to the…

Joshua de Leon
- 59
- 1
- 4
- 19
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
1 answer
Javascript RabbitMQ -> Pull Single Message
I'm trying to pull a single message off of rabbitmq, process it, and acknowledge that single message. I don't want it to continue after acknowledgement pulling messages off the queue. If I don't do ch.close() in the code below, it continues to pull…

Bryce
- 664
- 6
- 17
0
votes
1 answer
Can one drop rabbitmq messages when queues are too large using amqplib in nodejs?
I'm using amqplib in a nodejs application. There's some heavy processing on the front-end side inducing some delay in the reception of rabbitmq messages. When monitoring my queues with rabbitmqctl list_queues, the number of messages waiting to be…

Florentin Hennecker
- 1,974
- 23
- 37
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
Could not connect to rabbitmq broker via nodejs client
I am using amqplib to create amqp clients. it works fine when running on localhost, but when I change it to the server's IP address 192.168.1.44, I get an error that indicates the conn object is undefined.
this is the client's code
var amqp =…

Arf Wael
- 21
- 1
- 5