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

Can I dynamically create RabbitMQ shovel from my NodeJS app?

RabbitMQ shovel plugin provides an HTTP API to create & configure shovels. Assuming that I have enabled shovel & shovel management plugin for my RabbitMQ server instance, can I dynamically create shovels from my NodeJS app? I currently use amqplib…
wraith
  • 391
  • 1
  • 14
4
votes
1 answer

Node.js amqplib - not able to implement the reconnect in case of connection close

I am trying to implement a reconnect mechanism when the connection fails to the rabbitmq queue server.This code is only for consuming messages, Below is my code ( the channel Init function takes care of initialising the consumer and binding to the…
Rangarajan K
  • 93
  • 3
  • 14
4
votes
3 answers

Is it possible to get unrouted messages in amqp?

Using the RabbitMQ web UI, When I publish to a topic exchange with no current queue bindings, rabbitmq is saying that the message has been published but not routed. Using amqp.node, when I bind a queue to the exchange and start consuming using "#"…
Kyle Domingo
  • 521
  • 4
  • 14
3
votes
2 answers

RabbitMQ / amqplib -- Error: Frame size exceeds frame max

Connection to RabbitMQ fails with Error: Frame size exceeds frame max. Although there are a few similar issues raised on StackOverflow and Github, but it is still very vague. One assumes that the version of AMQP used by RabbitMQ and amqplib differs,…
Roman Shirokov
  • 329
  • 4
  • 12
3
votes
0 answers

How to rebind/consume queue from channel?

I am using amqplib to transfer messages in my node.js server. Here is my code to listen on queue: channel.consume(queue, handler1, { noAck: true }) Now, I want to update the consumer to listen the same queue Like this: channel.consume(queue,…
pham cuong
  • 849
  • 1
  • 12
  • 24
3
votes
2 answers

How to set prefetch count to 1 for amqplib for nodejs

How do i set the prefetch count to one for amqplib in nodejs? link to Lib on git The desired result is that the consumer is only taking one message from the queue process it and when done take a new message. I have a setup where some messages takes…
Peter Savnik
  • 763
  • 1
  • 8
  • 27
3
votes
1 answer

RxJS Observable with asynchronous subscriber function

I'm trying to do something that feels like it should be straightforward, but is proving surprisingly difficult. I have a function to subscribe to a RabbitMQ queue. Concretely, this is the Channel.consume function here:…
AlexC
  • 1,646
  • 1
  • 14
  • 26
3
votes
0 answers

Subscribe to RabbitMQ queue with SailsJs

How to subscribe to RabbitMQ queue with SailsJs (without waterline adapter). Only with use of amqp.node https://github.com/squaremo/amqp.node. And without client request. From my understanding controllers are for http request. What I want is to get…
userbb
  • 2,148
  • 5
  • 30
  • 53
3
votes
2 answers

how to send a message to all subscribers except for the publisher which is also a listener on same rabbitMQ queue

i have a rabbitMQ installed used by a nodeJS server. i use rabbit.js library to interact with rabbit, and so far i was happy with it. i got multiple subscribers on the same queue in fanout mode, each node which is a subscriber, is also a…
Tal
  • 137
  • 1
  • 10
3
votes
2 answers

How does a queue sender know that a consumer crashed?

I'm using node-amqp. For each queue, there is one sender and one consumer. On the sender side, I need to maintain a list of active consumers. The question is when a consumer computer crashed, how would I get a notification and delete it from the…
3
votes
1 answer

RabbitMQ message latency between producer and consumer

I'm running the node.js amqp-node client on a RabbitMQ server. I've set up a simple publish/consume test in two different ways - each produces a different latency and I can't work out why. The latency is measured from the time the message was sent…
RobotEyes
  • 4,929
  • 6
  • 42
  • 57
2
votes
2 answers

How to get all messages using method consume in lib amqp.node?

Greeting guys. Can you help me with asynchronnous in node.js? Problem this: I'm use amqplib module for work with RabbitMQ and here there method consume, who gives messages from RabbitMQ, but that method first return promise about he starts and…
Rage Cacao
  • 43
  • 1
  • 6
2
votes
1 answer

Can I use amqplib in the browser?

I am an AMQP/RabbitMQ newbie, and relative Node.js newbie. Can I use the amqplib NPM library client-side? I'd like to be able to push messages direct to RabbitMQ from my Angular app. I have used Browserify to modularise a lot of my client-side…
Journeyman
  • 10,011
  • 16
  • 81
  • 129
2
votes
2 answers

AMQPlib nodejs consumer task concurrency

I'm building a background task management system with rabbitmq and nodejs using the amqlib module. Some of the tasks are really CPU-consuming, so if I'm launching a lot of them and I have only a few workers up, my server can get killed (using too…
Noé Malzieu
  • 2,530
  • 3
  • 22
  • 27
2
votes
3 answers

Send array via RabbitMQ

How can I send an array of messages using RabbitMQ? I do not want to send every message separately. For example: ch.publish(ex, '', new Buffer('hello world')); How could I use something like: ch.publish(ex, '', new Buffer([msg1, msg2,…
user2573863
  • 643
  • 1
  • 9
  • 18