Re: Experimental "peer to peer" modular programming concept
- Posted by ghaberek (admin) May 06, 2015
- 1825 views
What you're describing is a publish-subscribe pattern, not a peer-to-peer model, mostly because this is a one-to-many relationship, and peer-to-peer is by definition one-to-one.
I suggest renaming your "send" function to "publish" or "post", because that is the conceptual opposite of "subscribe".
I've played around with this concept in ZeroMQ, which is pretty nifty. It provides a "PUB/SUB" (publish/subscribe) pattern, among others.
-Greg