rabbitmq-tutorials/erlang
2024-06-28 19:14:41 +09:00
..
src Changed OTP application to OTP library 2024-06-28 18:44:58 +09:00
.gitignore Switch from escript to rebar3 for build management 2024-06-19 19:51:49 +09:00
README.md Add rebar3 aliases for RabbitMQ tutorial commands 2024-06-28 19:14:41 +09:00
rebar.config Add rebar3 aliases for RabbitMQ tutorial commands 2024-06-28 19:14:41 +09:00
rebar.lock Add RPC tutorial 2024-06-22 19:22:20 +09:00

Erlang code for RabbitMQ tutorials

Here you can find a Erlang code examples from RabbitMQ tutorials.

This code is using RabbitMQ Erlang Client (User Guide).

Requirements

To run this code you need at least Erlang R13B03, on Ubuntu you can get it using apt:

sudo apt-get install erlang

You also need rebar3: https://www.rebar3.org/docs/getting-started/

You need Erlang Client binaries:

rebar3 compile

Code

Tutorial one: "Hello World!":

rebar3 send
rebar3 recv

Tutorial two: Work Queues:

rebar3 new_task
rebar3 worker

Tutorial three: Publish/Subscribe:

rebar3 receive_logs
rebar3 emit_log

Tutorial four: Routing:

rebar3 receive_logs_direct
rebar3 emit_log_direct

Tutorial five: Topics:

rebar3 receive_logs_topic
rebar3 emit_log_topic

Tutorial Six: RPC:

rebar3 rpc_server
rebar3 rpc_client