Skip to content

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

License

Notifications You must be signed in to change notification settings

sklarsa/rabbitmq-presentation

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published