All Questions
Tagged with ruby-on-rails bunny
30
questions
1
vote
0
answers
14
views
Ruby/Rails Bunny RabbitMQ Must be one of [:method, :headers, :body, :heartbeat]
I get an error when trying to connect to RabbitMQ.
Error backtrace:
.../amq-protocol-2.3.2/lib/amq/protocol/frame.rb:67:in `decode_header'
Error:
Must be one of [:method, :headers, :body, :heartbeat]
...
1
vote
0
answers
272
views
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-...
0
votes
1
answer
193
views
Is it possible that we can run sneakers along with web server?
I can use rake sneakers:run it work perfect. but can I run sneakers along with web server without running separate command (rake sneakers:run)
1
vote
1
answer
255
views
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 ...
1
vote
0
answers
217
views
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 ...
1
vote
0
answers
194
views
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: ...
2
votes
0
answers
277
views
rabbitMQ(bunny gem) + sidekiq not working in heroku for ruby application
Gem which i have used in this application
gem 'redis', '~> 3.0'
gem 'sidekiq'
gem 'bunny'
This is the consumer part to get the message from queue as a rake task.
task :do_consumer => :...
1
vote
0
answers
316
views
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....
0
votes
0
answers
2k
views
Configuration issue with rabbitMQ and sneakers
I have two applications sap1 and sap2 and i have been using rabbitMQ (bunny gem) for messaging, so that is working like from sap1 i will create the message and publish
sap1 (publisher app)
Gemfile
...
0
votes
2
answers
2k
views
Ruby on Rails Bunny Gem for RabbitMQ
I cannot figure out how to subscribe to my RabbitMQ locally(it worked when I used CloudAMPQ.) I suspect the problem is that my SendPriceJob isn't connected to the right connection/channel/exchange but ...
0
votes
0
answers
775
views
RabbitMQ not sending messages to consumer with round robin
I have a Ruby app that acts as producer, something like this:
class PostNotificationService
class << self
def call(notification)
queue = channel.queue('adyen_notifications', ...
2
votes
1
answer
420
views
Is it possible to call Bunny::Exchange publish from Delayed Job?
I have a Rails app that sometimes publishes messages to a RabbitMQ queue, using the gem "Bunny". Here's the setup:
# config/initializers/bunny.rb
$mq_connection = Bunny.new
$mq_connection.start
$...
0
votes
1
answer
598
views
RabbitMQ subscription limit the number of messages to pre fetch
I am using rabbitmq to communicate between microservices written in ruby on rails. Each service subscribes to a topic. All services are scaled and run as multiple instances based on need.
During ...
2
votes
1
answer
931
views
How can we setup delayed queueing with Bunny gem and RabbitMQ?
I have setup RabbitMQ and able to publish and consume messages with bunny gem from rails application instantly. How can we achieve delayed queueing with a pre-defined delay time per message while ...
2
votes
1
answer
3k
views
Rspec 3 stub class variable
anybody know, how I can stub class variable initialization?
I define
@@connection = Bunny.new.start
for restrict connection numbers, but now I have to test it, and when I try stub it in general way,...