The Recent History Exchange Implemented in Elixir
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
test
.gitignore
LICENSE.md
Makefile
README.md
mix.exs
package.mk

README.md

RabbitMQ Recent History Exchange

This an example RabbitMQ plugin implemented in the Elixir Programming Language

Keeps track of the last 20 messages that passed through the exchange. Every time a queue is bound to the exchange it delivers that last 20 messages to them. This is useful for implementing a very simple Chat History where clients that join the conversation can get the latest messages.

Exchange Type: x-recent-history

Requirements

To build this plugin you need to have Elixir installed in your machine. Follow the instructions on their website.

Installation

Install and setup the RabbitMQ Public Umbrella as explained here: http://www.rabbitmq.com/plugin-development.html#getting-started.

Then cd into the umbrella folder and type:

git clone git://github.com/videlalvaro/elixir_wrapper.git
git clone git://github.com/videlalvaro/rabbitmq-recent-history-exchange-elixir.git
cd rabbitmq-recent-history-exchange-elixir
make

Finally copy the file elixir.*.ez and rabbitmq_recent_history_exchange_elixir*.ez from the dist folder into the $RABBITMQ_HOME/plugins folder.

License

See LICENSE.md