I am facing the following problem:
I have a client (ultimately n-clients) and like to connect to a server. Clients know the server/host address but the server does not know the address of the client(s). I like to be able to accomplish the following messaging patterns between client-server (both, the client and the server need to be able to accomplish the following message patterns):
- Publish Messages (no reply expected)
- Receive Messages (no reply expected)
- Request / Receive Messages (reply expected)
- Stream messages (this may be redundant as it may be served through the publish message pattern above)
Again the important point, and where I struggle is how to connect to the host while still being able to send AND receive messages. The host has no ability to connect to clients, it can only accept client connection requests. Please note that I do not look for a solution with proxy/broker to which both client and server connect otherwise I could go directly with solutions such as rabbitmq.
How can I best accomplish this, even better with reference to code samples.
Thanks a lot.