The aim of this repository is to present an example scenario when MongooseIM pushes events to RabbitMQ. The scenario takes advantage of a feature described here: esl/MongooseIM#2127.
The image below shows the system architecture:
One user sends a message to the other through MongooseIM (using
user.exs
script). When the message flows through
MongooseIM appropriate events are generated and pushed to RabbitMQ. Events are
then consumed (by consumer.exs
script).
- docker
- docker-compose
- makefile
- elixir 1.6
- Set up the environment
make
- Run the consumer
make consumer
- Run two users (run the following command twice in different consoles).
make user
#Are you Bob or Alice? (type `b` or `a`): b
PROTIP: Choose different roles for the users. You'll be asked by the script if you play as
Alice
orBob
.
- Go to http://localhost:55673 (credentials
guest
/guest
) and see RMQ Management UI