Here you can find a Erlang code examples from RabbitMQ tutorials.
This code is using RabbitMQ Erlang Client (User Guide).
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://rebar3.readme.io/docs/getting-started
You need Erlang Client binaries:
make all
./send.erl
./receive.erl
./new_task.erl "A very hard task which takes two seconds.."
./worker.erl
Tutorial three: Publish/Subscribe:
./receive_logs.erl
./emit_log.erl "info: This is the log message"
./receive_logs_direct.erl info
./emit_log_direct.erl info Hello
./receive_logs_topic.erl "*.rabbit"
./emit_log_topic.erl red.rabbit Hello