【文件属性】:
文件名称:thrifty-bunny:使用 RabbitMQ 作为 RPC 调用传输机制的 Apache Thrift 适配器
文件大小:16KB
文件格式:ZIP
更新时间:2021-06-06 10:02:20
Ruby
节俭::兔子
用于 RPC 调用的 RabbitMQ-ApacheThrift 适配器
致谢
这个 gem 主要基于 。 感谢 Stephen 的工作和出色的教程。
安装
将此行添加到应用程序的 Gemfile 中:
gem 'thrifty-bunny'
然后执行:
$ bundle
或者自己安装:
$ gem install thrifty-bunny
用法
gem 提供了一个与 RabbitMQ 集成的 Thrift 服务器。 您将以标准 Thrift 方式使用此服务器:
handler = MyHandler . new
processor = MyProcessor . new ( handler )
service = ThriftyBunny :: RpcServer . new ( processor )
service . serve ( log_mes
【文件预览】:
thrifty-bunny-master
----thrifty-bunny.gemspec(1KB)
----Rakefile(476B)
----Gemfile(116B)
----examples()
--------calculator()
----spec()
--------unit()
--------integration()
--------spec_helper.rb(209B)
----.gitignore(131B)
----lib()
--------thrifty_bunny.rb(138B)
--------thrifty_bunny()
----README.md(3KB)
----.pryrc(79B)
----LICENSE.txt(1KB)