c# - How to implement publish/subscribe communication over the internet -


I have a net service on the server, and net clients connecting to this server on the Internet.

I want to implement a published membership model where the client can subscribe to the event on the service and the data is pushed because of the data available. For an alternative, customers have to choose the server for the data, although it will be very slow for its requirement. Therefore, a published / subscription type of communication is required.

I understand that WCF binding WSDualHttpBinding allows it, though it comes with a negative side. "Programming WCF Services" Writer Juwel Lovie,

... WSDL httbidding is mainly useless, as it is impossible for tunnel through different communication barriers that separate the client from the service. This makes it impractical to find a specific web-server machine.

I mean interpretsed (please correct me if I am wrong) to operate with WSDualHttpBinding, it is necessary for customers to open port on their machine (any required router With the configuration) to callback from the server. If this case using WSDualHttpBinding will not be an option for me. Using Windows Azure will also not be an option.

So the question of my question is, how can I get a publication / subscription / callback communication on the Internet, without requiring a client machine to open the ports? Open standards are okay, but unnecessary because both clients and servers. Net, Windows Azure is not an option.

WSDualHttpBinding consists of two channels from one client to another on the server and from the server to the client. Afterwards what really requires firewall and NAT configuration about Net.Tcp? It uses only one channel and supports callback (duplex communication) on the channel launched from the client on the server. You mentioned that both the customer and the server There will be NET applications, so it should be possible with some firewall configuration on the server.


Comments