Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.41 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.41 KB

The Hare Wins the Race: Getting the most out of RabbitMQ in distributed applications

Link to the talk: https://www.youtube.com/watch?v=WXkhJ92-fsY

Setting up the environment

Mac

Install using Homebrew

brew install rabbitmq

Add RabbitMQ to launchctl to launch the broker on startup (Optional)

ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist

Clone the repository

git clone https://github.com/sklarsa/rabbitmq-presentation.git

Create a virtual environment and install the requirements

cd rabbitmq-presentation
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Examples

Path Description How to run
amqp_example.py Basic broker communication using pika python amqp_example.py
celery_example_1 Celery example with default config cd celery_example_1; ./run_example.sh
celery_example_2 Celery example with advanced routing cd celery_example_2; ./run_example.sh
ae_example.py Alternate exchange usage to catch unrouted messages python ae_example.py

Links

AMQP and RabbitMQ

Python Packages

Celery