Project

bunny_rpc

0.0
No commit activity in last 3 years
No release in over 3 years
bunny_rpc
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
>= 5.7.0, ~> 5.7
~> 10.0

Runtime

~> 2.2.0
 Project Readme

BunnyRpc

rabbitmq RPC on bunny

Installation

Add this line to your application's Gemfile:

gem 'bunny_rpc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bunny_rpc

Usage

Client

require 'bunny_rpc'

client = BunnyRpc::Client.new

client.publish('okokokokok', 'queue1')

client.close

Server

require 'bunny_rpc'

server = BunnyRpc::Server.new

server.subscribe('queue1') do |data|
  puts data

  'get it !'
end

the last block body is the return body.

TODO

  • to become backend_work.