Skip to content

Latest commit

 

History

History

erlang

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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