Skip to content

mkacper/mim-rmq-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongooseIM with RabbitMQ demo

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.

System architecture

The image below shows the system architecture:

diagram

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).

Step-by-step guide

Requirements

  • docker
  • docker-compose
  • makefile
  • elixir 1.6

Running the demo

  1. Set up the environment
make
  1. Run the consumer
make consumer
  1. 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 or Bob.

Tips&Tricks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published