MQTT https://en.wikipedia.org/wiki/MQTT may be considered So it will be possible to "subscribe" to a given reader and wait for a given event. See Mosquitto http://mosquitto.org/ Paho http://www.eclipse.org/paho/ AMQP https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol could also be considered see Pika https://pika.readthedocs.org/ Serializing SQLAlchemy objects such as Events will probably be necessary http://stackoverflow.com/questions/5022066/how-to-serialize-sqlalchemy-result-to-json http://codelike.com/blog/2015/07/19/how-to-serialize-sqlalchemy-objects-to-json-in-pyramid/
MQTT https://en.wikipedia.org/wiki/MQTT may be considered
So it will be possible to "subscribe" to a given reader and wait for a given event.
See Mosquitto http://mosquitto.org/
Paho http://www.eclipse.org/paho/
AMQP https://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol could also be considered
see Pika https://pika.readthedocs.org/
Serializing SQLAlchemy objects such as Events will probably be necessary
http://stackoverflow.com/questions/5022066/how-to-serialize-sqlalchemy-result-to-json
http://codelike.com/blog/2015/07/19/how-to-serialize-sqlalchemy-objects-to-json-in-pyramid/