A proof of concept - connecting Ruby
with Elixir
via RabbitMQ
- Make sure you have Ruby installed
- Make sure you have Elixir installed
- Make sure you have RabbitMQ installed
You need to run RabbutMQ
server. To do that execute:
rabbitmq-server
Now, it's available on your localhost and is waiting to accept any connection.
Once you have everything installed, you need to fetch all dependencies for each project.
cd rabbit_elixir
mix deps.get
cd rabbit_ruby
bundle
Run Elixir
application:
cd rabbit_elixir
mix run --no-halt
Run Ruby
application:
cd rabbit_ruby
bundle exec ruby bunny.rb
This simple program sends a number from Ruby
to Elixir
application. You should see a message like:
Consumed a 1.