I need a message bus framework that would allow two Python objects to communicate. What are some of the existing frameworks I could use? I think DBus is overkill at this point (having to involve an external daemon).
Asked
Active
Viewed 2,513 times
1
-
What do you mean with two _objects_ communicating exactly? – orlp Mar 23 '12 at 22:22
-
Generic messages back and forth. Standard one object emits and (potentially) multiple objects "connected" will get their callbacks called. I'm using gstreamer and glib/gobjects. With gstreamer, there's a bus being used to communicate between apps and elements. It would be nice to reuse code rather than creating my own bus messaging framework – Richi Mar 24 '12 at 01:09
-
1Have you looked at [0MQ](http://www.zeromq.org/)? While it primarily targets network messaging it also has support for in-process communication. It supports various messaging models, including pub/sub. Also [this](http://www.dabeaz.com/coroutines/) is a fascinating read. – larsks Mar 24 '12 at 03:25