1 Star 0 Fork 0

zhzhouq9/rabbitmq-tutorials

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

Rust code for RabbitMQ tutorials

Here you can find the Rust code examples for RabbitMQ tutorials.

The examples use lapin client library.

You should have a RabbitMQ server running on default port.

Requirements

Code

Each tutorial is a separate crate where each source file corresponds to a binary executable. Each cargo command should be launched in a separate shell.

Tutorial one: "Hello World!"

cd 01-hello-world
cargo run --bin receive
cargo run --bin send

Tutorial two: Work Queues

cd 02-work-queues
cargo run --bin worker
cargo run --bin new-task "hi" # specify a custom message

Tutorial three: Publish/Subscribe

cd 03-publish-subscribe
cargo run --bin subscribe
cargo run --bin publish "hi" # specify a custom message

Tutorial four: Routing

cd 04-routing
cargo run --bin receive-direct info error # specify log levels
cargo run --bin emit-direct error "help!" # specify severity and custom message

Tutorial five: Topics

cd 05-topics
cargo run --bin receive-topic kern.* # specify topic filter
cargo run --bin emit-topic kern.mem "No memory left!" # specify topic and message
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhzhouq9/rabbitmq-tutorials.git
git@gitee.com:zhzhouq9/rabbitmq-tutorials.git
zhzhouq9
rabbitmq-tutorials
rabbitmq-tutorials
master

搜索帮助