Message Queuing
There are currently two options I'm exploring for messaging queuing. The first was simple, Redis' Pub/Sub system. It's fast, it's simple, but that's also it's downfall. Redis Pub/Sub system doesn't have retries or other nice features of more mature messaging queuing systems. For that, I've been exploring RabbitMQ. I know, I know, everyone loves Apache Kafka but you have to make a selection and run with it at some point.
RabbitMQ
Select the link and install the service on Ubuntu.
Enable Management by running the following:
rabbitmq-plugins enable rabbitmq_management
We need to add a user and set the permissions
rabbitmqctl add_user 'admin' 'betterPassword'
rabbitmqctl set_user_tags 'admin' 'administrator'
rabbitmqctl set_permissions -p / 'admin' ".*" ".*" ".*"
Go to a browser and navigate to rabbitmqIPAddress:15672.
Queue Policy Limitation
I like to limit my queues per size by doing the following:
rabbitmqctl set_policy my-pol "^one-meg$" \
'{"max-length-bytes":1048576}' \
--apply-to queues