-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ZeroMQ: ZeroMQMessageHandler with bind capability #9228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Well, we even mention that in the doc: https://docs.spring.io/spring-integration/reference/zeromq.html#zeromq-outbound-channel-adapter. I cannot recall why, but I believe it is just because the
Sorry, the |
Yes, I read the docs and also got your point. My point is that if we provide the instruments for binding of the message producer (inbound) we could provide this capability also on outbound. A classical scenario could be this one: Over the network, there are many subscribers (eterogeneus for programming language and/or ZMQ library) who connect on My application send messages over a MessageChannel, and they are redirect to the ZMQ.Socket bound by the publisher and sent to all the subscribers As for now, this approach is not applicable. Let me know if I’m avoiding some details or crucial points. |
Ok. If that is the use-case which requires such a convenience, then let’s do that! Consider to implement that logic in the |
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
The expected behaviour is that the ZeroMqMessageHandler could bind a port when the other part (a ZeroMqMessageProducer or whatever out of Spring world) connects to that port.
Current Behavior
As for now, the ZeroMqMessageHandler can only connect to a specific URL, while no binding is allowed.
Context
As per ZeroMQ philosophy, binding or connecting to a socket is completely decoupled from sender/receiver abstraction.
My question is: Is there any reason behind the current limitation? Something I'm missing out?
If you agree, I could make a PR to add this functionality
The text was updated successfully, but these errors were encountered: