GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — rabbitmq-tutorials/elixir at master · rohochan/rabbitmq-tutorials

Expand file tree

/

elixir

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

elixir

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.gitignore
.gitignore
 
 
README.md
README.md
 
 
emit_log.exs
emit_log.exs
 
 
emit_log_direct.exs
emit_log_direct.exs
 
 
emit_log_topic.exs
emit_log_topic.exs
 
 
mix.exs
mix.exs
 
 
new_task.exs
new_task.exs
 
 
receive.exs
receive.exs
 
 
receive_logs.exs
receive_logs.exs
 
 
receive_logs_direct.exs
receive_logs_direct.exs
 
 
receive_logs_topic.exs
receive_logs_topic.exs
 
 
rpc_client.exs
rpc_client.exs
 
 
rpc_server.exs
rpc_server.exs
 
 
send.exs
send.exs
 
 
worker.exs
worker.exs
 
 

README.md

Outline

Elixir code for RabbitMQ tutorials

Here you can find an Elixir port of RabbitMQ tutorials.

Requirements

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

Code

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
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.