Questions tagged [bunny]

Bunny is an easy to use RabbitMQ Ruby client.

Bunny is an easy to use RabbitMQ Ruby client.

RabbitMQ messaging enables cross-platform software applications to connect and scale. Applications can connect to each other, as components of a larger application, or to user devices and data. Messaging is asynchronous, decoupling applications by separating sending and receiving data.

Sources:

91 questions
1
vote
1 answer

Advice on setting up RabbitMQ/Bunny in virtual environment

I am attempting to test the functionality of RabbitMQ and Bunny in my local environment as a proof of concept. We are currently using Beaneater/Beanstalk and wishing to change. I am using vagrant for my local environment but cant seem to find a…
EamonnMcElroy
  • 587
  • 6
  • 20
1
vote
1 answer

Too many consumers in Rabbit MQ (Bunny)

I'm sending lots of data to my app through JMeter. My subscribe block and the publisher look like this: BunnyStarter.start_bunny_components cons = BunnyStarter.queue.subscribe do |delivery_info, metadata, payload| method_calling (…
Bogdan Popa
  • 1,099
  • 1
  • 16
  • 37
1
vote
1 answer

Rabbitmq RPC implementation share the same reply queue

I am trying to build RPC by using rabbitmq. According to the tutorial for building RPC through rabbitmq http://www.rabbitmq.com/tutorials/tutorial-six-ruby.html, we can use the one reply-queue for each client and use correlation_id to map the…
Cheng Lun Chen
  • 105
  • 1
  • 7
1
vote
0 answers

How to define a global variable that can be accessed in Delayed Job in rails?

This is my config/initializers/bunny.rb file: if Setting.RABBITMQ_ENABLED[Rails.env] conn = Bunny.new Setting.MERCURY_URL[Rails.env] conn.start bunny_settings = Setting.BUNNY_SETTINGS ## Channel && Topic for sending SMS-es. …
1
vote
1 answer

Bunny::AccessRefused message when trying to read messages

I'm trying to read messages from a queue using Bunny. I only have read permissions on the RabbitMQ server but it seems the code I'm using tries to create the queue - though I can see the queue already exists with queue_exists?(). There must be a…
James Smith
  • 501
  • 5
  • 13
1
vote
0 answers

Use bunny fetch for loading multiple messages from RabbitMQ

I'm building a Ruby worker for RabbitMQ which will process multiple messages per time and will work on multiple queues. In RabbitMQ I have: Queue1, Queue2, Queue3... I need to quickly load big pack of packets(with basic_get I can load 65535 messages…
Alex Lapchenko
  • 283
  • 1
  • 5
  • 14
1
vote
1 answer

TCP Connection Failure issues in latest bunny version (2.0.0)

I'm trying out the Bunny amqp client gem version 2.0.0. And while I was trying I found the following error : W, [2015-08-03T07:36:21.913706 #9100] WARN -- #: Could not establish TCP connection to 10.223.19.94:5672:…
Vivek Dhayalan
  • 467
  • 4
  • 28
1
vote
1 answer

who knows the volume of Stanford bunny model?

I have developed an algorithm to compute the volume of point set.And now I plan to use Stanford bunny model for testing my algorithm,but I haven't found the true value of the volume yet,so I don't know whether the value I computed is accurate.Is…
1
vote
1 answer

Singleton for sidekiq threads possible?

So I need to be able to create a single RabbitMQ connection and channel per Sidekiq thread because I run out of RabbitMQ connections if I don't and because the docs suggest it. The docs show how to do it with Unicorn: before_fork do |server,…
gabe
  • 1,873
  • 2
  • 20
  • 36
1
vote
2 answers

Get just one message from rabbitmq queue and unsubscribe

I am using RabbitMq for communication, and I would like to consume just one message and unsubscribe. How to do it in ruby bunny? My subscribe block is pretty easy: queue.subscribe(block: true) do |delivery_info, properties, payload| puts…
Sławosz
  • 11,187
  • 15
  • 73
  • 106
0
votes
1 answer

I'm having problems making bunnystream API requests with Vuejs fetch

I need to send a post request to the bunnynet api using fetch in vuejs, for this I need to enter the name of the video in the body part. I want to name the video with the variable I got from the input section, but I couldn't write it as a body. I…
0
votes
0 answers

How to refresh RabbitMQ credentials(JWT) dynamically

I'm using amqplib in my NodeJS project. Instead of username:password I'm using JWT authentication. Which is basically an empty username and JWT token as a password. The rest is handled by the MQ server. Auth works fine but when the JWT token expires…
n1md7
  • 2,854
  • 1
  • 12
  • 27
0
votes
0 answers

SOLVED Handle multiple AMQP Pattern inside one Rails Service using Bunny gem

SOLVED PROBLEM. Just create 2 different queues, like rpc.queue and pubsub.queue. Then you can use multiple messaging pattern in one service without any problem. I create one rails service using Bunny and ConnectionPool Gem. This service "in my mind…
0
votes
1 answer

Rabbitmq dead letter queue not delaying message

I have setup rabbitmq. I want to retry message after 10 second once they fail. But the way I have setup, the message is not getting delayed, it's coming back to queue immediately. I want to wait 10 second before sending message to main_queue. Below…
r3b00t
  • 6,953
  • 6
  • 27
  • 37
0
votes
1 answer

upload video to bunny stream with axios

i need to upload video to bunny stream :bunny docs i convert file to base64 as thy do here: upload file: BODY PARAMS if you select js axios as LANGUAGE you'll see the data value set in base64 and this is my code: function UploadVideo(e){ const…