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
0 answers

RabbitMQ - shovel plugin, accessing headers (properties) form Azure Service Bus

I need to implement rabbitMQ as sort of a middleware between Azure service bus and my rails app. The message that is being sent uses headers which i also need to capture. So, is there a way for shovel-plugin to also include headers with the shoveled…
1
vote
1 answer

Ruby Bunny exchange wait_for_confirm or die

What would be the best way to incorporate something similar to the RabbitMQ channel.waitForConfirmsOrDie() method, while utilizing the Bunny gem for a publish confirmation? Right now I am using: if !@channel.using_publisher_confirmations? …
cr0ss
  • 11
  • 4
1
vote
1 answer

Keep publishing data via publisher RabbitMQ (ruby bunny)

I have a RabbitMQ with bunny working using consumer.rb and publisher.rb. If I run ruby consumer.rb and then publisher.rb I get data being published (data coming from another class). Data prints like this on ruby consumer.rb when I run…
Pav
  • 19
  • 1
  • 4
1
vote
1 answer

Messages stacking on consumers, when other consumers are available in RabbitMQ - using bunny for rails

Queue messages in RabbitMQ are stacking and waiting on a single consumer while other consumers are available. We use RabbitMQ as our messenger service. We use bunny to create connections and setup queues with passing messages. In our rails setup…
joe
  • 103
  • 6
1
vote
0 answers

Auth user between Rails apps with JWT token

My problem: I'm adding a store section to a rails 5 api only app and to keep the complexity down I'm planning to add it as a separate macroserivce and share the user between the two apps, to auth the users in the main app I'm using a JWT token and I…
Jabawack81
  • 113
  • 1
  • 6
1
vote
1 answer

Ruby class design - should I create constants in a seperate file?

I'm new to Ruby, using Bunny to consume messages from RabbitMQ. So my class currently looks roughly like this: class Consumer include Validator def initialize #Start a RabbitMQ session @rdSession = Session.new @queueMain =…
userMod2
  • 8,312
  • 13
  • 63
  • 115
1
vote
1 answer

Bunny and RabbitMQ - Adapting the WorkQueue tutorial to cancel subscribing when the Queue is completely worked

I fill up my queue, check it has the right number of tasks to work and then have workers in parallell set to prefetch(1) to ensure each just takes one task at a time. I want each worker to work its task, send a manual acknowledgement, and keep…
David West
  • 2,256
  • 6
  • 32
  • 62
1
vote
0 answers

how to run a bunny job as a background process in Rails 3.2

We have a Rails 3.2 app and will listening on a RabbitMQ queue using Bunny. The code for the listener will be like: require 'bunny' class TestBunny def self.do connection = Bunny.new(host: RABBITMQ_HOST, user: RABBITMQ_USERNAME, pass:…
timpone
  • 19,235
  • 36
  • 121
  • 211
1
vote
0 answers

Common mistakes in RabbitMQ

I have two applications S-APP1 and S-APP2 and just started to use rabbitMQ with client bunny gem, so when i click(this could be more click in a minute) a button from S-APP1 then i will call publisher.rb that will publish the message into queue and…
Developer
  • 561
  • 7
  • 29
1
vote
1 answer

Ruby Bunny - Consuming from Multiple Queues

I’ve just started using Ruby and am writing a piece to consume some messages from a RabbitMQ queue. I’m using Bunny to do so. So I’ve created my queues and binded them to an exchange. However I’m now unsure how I handle subscribing to them both and…
userMod2
  • 8,312
  • 13
  • 63
  • 115
1
vote
1 answer

Subscribe to MQTT messages from an AMQP client on RabbitMQ?

I run a RabbitMQ node with the MQTT/WebMQTT plugins enabled. All MQTT plugin settings use the default configuration. Various MQTT clients are sending messages to MQTT channels. The MQTT channel names follow the format of…
Rick
  • 8,366
  • 8
  • 47
  • 76
1
vote
1 answer

Trouble Rescuing from Bunny Connection Net::ReadTimeout

I have a ruby script that uses the Bunny Gem to connect to a rabbitmq instance. The script works for a while, but eventually will die because of a…
1
vote
1 answer

direct reply pseudo queue with bunny gem

I am creating an rabbitmq rpc in ruby 2.3 using bunny 2.7.0 I've made it with one reply queue per client. But I am expected to have quite a large amount of clients and it is not efficient to do it in this way. I want to use a direct reply feature of…
Anton bog
  • 11
  • 2
1
vote
1 answer

Negative unack in RabbitMQ

Can someone explain this to me? Stack is: RabbitMQ, Sneakers, Ruby, Bunny
1
vote
1 answer

RabbitMQ Timeout::Error: IO timeout when reading 7 bytes

I use Ubuntu14.04, Rail 5, RabbitMQ (server 3.6.5), Bunny 2.5.1 I implemented Rabbit to servise, and tried to test it. I wrote next ruby script: def rabbit_test s_time = Time.current 10_000.times do |n| …
Oleh Sobchuk
  • 3,612
  • 2
  • 25
  • 41