1 Star 0 Fork 0

zhzhouq9/rabbitmq-tutorials

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Ruby code for RabbitMQ tutorials

Here you can find Ruby code examples from RabbitMQ tutorials.

Requirements

These tutorials require Ruby 2.2 or later, Bundler and Bunny to be installed.

To install Bunny with Bundler, do

bundle install

Code

To run tutorial one: "Hello World!":

bundle exec ruby send.rb
bundle exec ruby receive.rb

Tutorial two: Work Queues:

bundle exec ruby new_task.rb
bundle exec ruby worker.rb

Tutorial three: Publish/Subscribe

bundle exec ruby receive_logs.rb
bundle exec ruby emit_log.rb

Tutorial four: Routing

bundle exec ruby receive_logs_direct.rb
bundle exec ruby emit_log_direct.rb

Tutorial five: Topics

bundle exec ruby receive_logs_topic.rb
bundle exec ruby emit_log_topic.rb

Tutorial six: RPC

bundle exec ruby rpc_server.rb
bundle exec ruby rpc_client.rb

To learn more, see Bunny documentation.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhzhouq9/rabbitmq-tutorials.git
git@gitee.com:zhzhouq9/rabbitmq-tutorials.git
zhzhouq9
rabbitmq-tutorials
rabbitmq-tutorials
master

搜索帮助