Questions tagged [node-amqplib]

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

87 questions
1
vote
1 answer

Error: Can't resolve 'net' after adding the rabbitode package to my React app

Just added rabbitode to my React TypeScript app so I can read from RabbitMQ. The instructions are quite straightforward, however, I hit a number of issues after installation. My module doesn't compile at all. There were a number of issues related to…
RekaB
  • 438
  • 5
  • 14
1
vote
0 answers

ampqlib Error:"Frame size exceeds frame max" inside docker container

I am trying to do simple application with backend on node.js + ts and rabbitmq, based on docker. So there are 2 containers: rabbitmq container and backend container with 2 servers running - producer and consumer. So now I am trying to get an access…
Val
  • 43
  • 1
  • 6
1
vote
0 answers

What should i do when rabbitmq blocking event is triggered?

I am creating a rabbitmq connection while starting my nodejs app and i created a doPublish function which is using channels internally ( created from that connection ) for publishing.If rabbitmq publish call returns true then everything is fine but…
1
vote
1 answer

list bounded queues in amqp

Is there any library in node.js that has implemented rabbitmq features comprehensively? I've used amqplib in our project but it seems it has no feature to list bounded queues. How can I list those queues in preferably amqplib?
1
vote
0 answers

Channel.get not triggering

I'm using a RabbitMQ queue to publish and receive messages between consumers, the main issue is that I want to receive a single message then exit. From other answers on this site I've seen that channel.get seems to be the best way to do this.…
Brady Harper
  • 235
  • 1
  • 3
  • 17
1
vote
1 answer

Messages Patterns - RabbitMQ/NestJS

I'm trying to integrate to a project done using NestJS, a simple api where you can publish messages with a name (or pattern) and send it to that system that has implemented a handler that matches the name. The system I'm building is really small, it…
Mido
  • 89
  • 1
  • 10
1
vote
1 answer

How to synchronize Node.js and Python when using RabbitMQ i.e run a task on a worker, wait for the result and send it to the client

I have an express Node.js Application and a machine learning algorithm using python. I'm using RabbitMQ to integrate Node.Js and Python and it works, I mean, this is more performatic than using the library child_process with spawn, for example. But…
1
vote
1 answer

RabbitMQ data lost on crash

I'm using RabbitMQ to store and retrieve data. I referred this article. I have set the durable flag to true and the noAck flag to false (i need to store the messages on the queue even after consuming). I created these scenarios: I updated stock…
Pranesh A S
  • 331
  • 1
  • 7
1
vote
0 answers

Npm amqplib rabbitmq ackall() vs ack()

I am new with rabbitmq. I understand that I need to ack messages in order to remove the consumed messages from the queue. My question is should I use ack() or ackall()? From the documentation it looks like ackall is dismissing all messeges from the…
Shlomi A
  • 21
  • 2
1
vote
1 answer

How can I build a class to abstract RabbitMQ and amqplib functionality in Node.js

I am trying to build a small library to abstract some of the boilerplate needed with amqplib to communicate with RabbitMQ. I am using the promises api and the async/await syntax. I am trying to build a class with some methods to use with several…
Paul D.
  • 591
  • 7
  • 17
1
vote
1 answer

Get a list of exchanges, bindings, queues from RabbitMQ by NodeJS

Sometimes it is needed to recreate bindings and queues at RabbitMQ by NodeJS. I need to unbind, clear and delete them programaticaly. I can save what I do and revert later. I use amqplib. It confuses that it does not provide functionality that could…
Victor Shelepen
  • 1,966
  • 2
  • 16
  • 41
1
vote
1 answer

Node RabbitMQ consume message and do something for each message

I want to consume messages from a rabbitmq service and for each message I receive I want to do something (Ex: Put that message in to a database, Process the message and send a reply via RabbitMq through another queue) per message. Currently my…
Rumesh Madhusanka
  • 1,105
  • 3
  • 12
  • 26
1
vote
1 answer

Node/RabbitMQ - Send consumer response to nodejs route

I am handling nodejs requests through RabbitMQ. My producer receives requests through nodejs route and sends them to consumer, which then creates a document in the db by the data received from the request. Here is my…
Gabriel
  • 99
  • 1
  • 13
1
vote
1 answer

after a while i got this error : Error: No channels left to allocate

i want to send and save some data in the rabbit; after a while that i run my code and after some sending data into my rabbit i get some error like this: Error: No channels left to allocate i use from this code several times because i have several…
Mojax Razmi
  • 23
  • 1
  • 6
1
vote
2 answers

Await for proper connection to rabbit in nodejs

I try to write my simple eventemitter wrapper for amqplib/callback_api. I have trouble with handling sitaution when rabbit is not available or disconnected. I have method getConnect which returns Promise, which resolves when connection established.…
kimonniez
  • 113
  • 1
  • 7