How does one setup multiple publishers & subscribers with a TCP transport. I suspect that you don't do automatic mesh/bus creation. So one needs a unique IP bind point for each publishers, right? They just have the subscribers connect to each publisher on a single socket.
(this was discussed in: https://www.freelists.org/post/nanomsg/does-nanomsg-support-multi-producer-in-pubsub-mode,10 )
Is that basically correct?
The reason I lean to a pub/sub over a bus/mesh approach is because (and I admit I might well be mistaken) -
- I don't need a fully connected mesh
- I figure your radix -tree filtering at each node is better than what I would come up with
- I like the "auto-discovery" aspect of pub/sub as opposed to the manual wiring of the mesh for the bus transports
- (i.e. automatic "entry and exit from mesh")
Basically what I have is 2 producers (that mainly do publishing, but can receive occasional requests to put additional info on the stream being published, so they do need to listen) And then about five consumers who mainly do receipt of the data stream from the publishers, but do need to occasional send requests to the producers.
And yes, I want the pub to be async, as as well as the recv() for the subscribe (no blocking is allowed in the context where I am using this).
So this is a bi-directional pub/sub architecture. And I am looking at the simplest way to implement this. (traffic is pretty light).
Of course a UDP transport would be nice for this, but I am not holding by breath.