- consume messages (content type "application/json") from RabbitMQ and store them in MongoDB
- provide websocket endpoint that publishes incoming messages to websocket clients as they arrive from RabbitMQ
- the routing key format is
{collection}.{_id}denoting MongoDB collection and document_ideg. a message with routing keyfoo.barshould be inserted in collection "foo" with document _id "bar"
- The setting assumes that there is no mongodb or rabbitmq installed on the machine, if no please stop both of the services
- open a new terminal and run
docker-compose build && docker-compose up - Client side can be reached through Here
- To send msg please do as follow:
- open a new terminal in the same directory and run
virtualenv --distribute --no-site-packages ./venv - run
source ./venv/bin/activate - run
pip install -r requirements.pip - run
python send.py(please not if you Interrupt the python send.py command the rabbitmq client session get closed according to the test file you sent earlier it deleted the exchange) - check the client side
- open a new terminal in the same directory and run
- open a new terminal and run
mongo - run
use task_db - run
show collections