How to implement publication / subscription to communication via the Internet

I have a .NET service hosted on a server and .Net clients connecting to this server over the Internet.

I want to implement a publication subscription model in which clients can subscribe to events in the service and have data pushed to them as data arrives. An alternative would be for clients to poll the server for data, however this is likely to be too slow for what is required. Therefore, the need to publish a publication / subscription type.

I understand that binding WCF to WSDualHttpBinding allows this, however it has a drawback. According to the "WCF Services Program" by Juval Lowy,

... WSDualHttpBinding is basically unusable because it is almost impossible to tunnel through various communication barriers that separate service from the client and the need to find a specific machine for web servers makes this impractical.

I interpreted this as meaning (please correct me if I am mistaken) that to work with WSDualHttpBinding, clients need to open a port on their machines (along with any necessary router configuration) for the server callback. If so, then using WSDualHttpBinding would not be an option for me. Using Windows Azure will also not be an option.

, , // ? , , .Net, Windows Azure .

+3
4

WSDualHttpBinding . NAT. Net.Tcp? ( ) , . , , .NET-, .

+2

.

3 :

  • . , .
  • WSDualHttpBinding
  • Azure Service Bus , .

. , Azure, , , . .

, : nservicebus http://nservicebus.com/, .net.

+2

Internet Communication Engine (ICE) IceStorm, /.

, , Visual Studio, , / ( zip "demos" "IceStorm" ).

ICE , , , , .

+2

DDS ( OMG) http://www.omg.org/news/meetings/workshops/Real-time_WS_Final_Presentations_2008/Session%203/03-02_Bertocci_et_al.pdf

OMG, , . , , , OMG . , , , . , - , .

NServiceBus? , , , ? ... ? , , ?

ICE - . CORBA, . , , ! : , /... ?


, , ( Google)... http://protocolbus.casessite.org. owm... , , ( , udp). Open source, ...

0

Source: https://habr.com/ru/post/1766602/


All Articles