Refactor RMQ/soar_bus to lower CPU usage
Currently we use the BlockingConnection setup, which unfortunately means we end up using a lot of connections
and channels
. With AMQP this adds a lot of CPU usage, which is causing issues on the nucleus server.
https://stackoverflow.com/questions/24510310/consume-multiple-queues-in-python-pika/42351395#42351395 https://pika.readthedocs.io/en/stable/intro.html
^ this way does it in a more async way. We can try sharing a connection
/channel
as much as possible and this should reduce it a lot.