sockets - Single source pushing: how to send 5kb each 5 minutes to 50000 clients -


i need implement client server architecture server sends same message many clients on internet. need send single message every 5 minutes about. message won't excede 5kb. need solution scale big number of clients connected (50.000-100.000)

i considered bunch of solutions:

  • tcp sockets

  • udp multicast

  • wcf http duplex service (comet)

i think have discard udp solution because solution clients on same network , won't work on internet. read somewhere wcf multicast cause bottleneck if have many clients connected can't find anywhere documentation showing performance statistics. tcp sockets seems me solution chose. think about? correct?


i'm wrong when udp doesn't work on internet... thought because read articles pointing out need configured routers in network support multicasting... read of udp ports multicast range , thought meant locally. instead, range 224.0.0.1 - 239.255.255.255 (class d address group), can reached on internet


considering in case reliability not crucial point, udp multicast choice. .net framework offers helpful classes accomplish this. can start udpclient , begin send data on multicast address 2 lines of code. @ client side easy to. there udpsinglesourcemulticastclient class need. concernes reliability , security .net framework has smart , simple way of handle dos attacks, dns rebinding attacks , revers tunnel attacks described here: http://msdn.microsoft.com/en-us/library/ee707325(v=vs.95).aspx

unicast (tcp sockets) work fine relatively small amount of traffic such this, keep on top of multicasting technology, situation changing every year.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -