Experimental use of (modified) RPC code from OpenStack Nova as a standalone messaging library. Initial code from nova was copied from:
830760b4c79cf9cdc80c6e0047ea206abc21f2c6 Wed Nov 2 15:44:31 2011 +0000
Files:
nova/rpc/impl_kombu.py
There is a simple service that sends out heartbeats to subscribers. There are implementations using both the modified novarpc (novamess) and the custom thing based on kombu (mess).
Make a virtualenv and activate it
Install dependencies:
$ pip install kombu gevent
Run one of the heartbeater services:
$ python nova_heartbeater.py # OR $ python mess_heartbeater.py
In another terminal, start the appropriate subscriber:
$ python nova_subscriber.py # OR $ python mess_subscriber.py