Coder Social home page Coder Social logo

jakesgordon / rack-rabbit Goto Github PK

View Code? Open in Web Editor NEW
62.0 62.0 7.0 179 KB

A Unicorn-style forking server for hosting rabbitMQ consumers as load balanced Rack apps

Home Page: http://codeincomplete.com/posts/2014/9/4/introducing_rackrabbit/

License: MIT License

Ruby 100.00%

rack-rabbit's People

Contributors

adamsanderson avatar jakesgordon avatar starkovv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rack-rabbit's Issues

Bunny :ack -> :manual_ack warning

RackRabbit::Subscriber#subscribe uses deprecated bunnys option :ack`.

This causes bunny to output:

[DEPRECATION] `:ack` is deprecated.  Please use `:manual_ack` instead.
[DEPRECATION] `:ack` is deprecated.  Please use `:manual_ack` instead.

Pull request will follow.

Got "IO::EAGAINWaitReadable" exception on request

ruby 2.2.1

Playing with rack-rabbit.

Tried to send request:

$DEBUG = true

client = RR.new(host: '172.28.128.17', port: 5672, adapter: :bunny)
client.request('my.topic', '/ping', '', { method: :GET })

Got exception:

Exception `IO::EAGAINWaitReadable' at /usr/local/rvm/gems/ruby-2.2.1/gems/bunny-1.7.0/lib/bunny/cruby/socket.rb:45 - Resource temporarily unavailable - read would block

Is it something I should worry about?

Question: Is this being maintained?

I see that there's not much activity on the project. It's really interesting and I'm just curious if there's anyone using it in production?

Possibility of setting connection config for RR.get call

Given rack app where rack-rabbit is used only as a client library RR.

When I call RR.get it tries to connect to default localhost RabbitMQ.

Is there any shortcut to pass connection configuration to RR without instantiation of RR?

With instantiation it looks like:

client = RR.new(host: '172.28.128.17', port: 5672, adapter: :bunny)
client.get('my.service', '/ping', {})

The goal is to establish connection to RabbitMQ after process fork and reuse already established connection on every incoming HTTP request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.