代码拉取完成,页面将自动刷新
Here you can find an Elixir port of RabbitMQ tutorials.
To run this code you need a recent Elixir version installed, which should include Mix, the Elixir build tool.
These tutorials use Elixir AMQP 0-9-1 client built on top of the official RabbitMQ Erlang client.
To install dependencies with Mix, run
mix deps.get
mix deps.compile
To run the examples, use mix run
.
Tutorial one: "Hello World!":
mix run receive.exs
mix run send.exs
Tutorial two: Work Queues
mix run worker.exs
mix run new_task.exs
Tutorial three: Publish/Subscribe
mix run receive_logs.exs
mix run emit_log.exs
Tutorial four: Routing
mix run receive_logs_direct.exs --info --warning
mix run emit_log_direct.exs --info "A message"
Tutorial five: Topics
mix run receive_logs_topic.exs "info.*" "warn.*"
mix run emit_log_topic.exs "info.connections" "Connected"
Tutorial six: RPC (Request/Response)
mix run rpc_server.exs
mix run rpc_client.exs
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。