locked
wcf socket VS wcf http binding RRS feed

  • Question

  • hello
           how wcf socket communication is different to wcf httpbinding. other then socket has specified port range..

    Regards
    It's Me
    Wednesday, April 29, 2009 12:53 PM

Answers

  • ok, so the speed of light is finite. Therefore, even if it were technically possible to push the request simultaneously to every client (which I have already explained is not possible), the clients woulod receive them at different times as they are different distances from the service.

    So, what is the actual business requirement driving "every client(silverlight browser app) should have same stock price"? What does this, in practical terms, mean? They must all have the same stock price within 1ms? within 1 second? within 10 seconds? What will the client do with the stockprice that makes it so incredibly time sensitive?
    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    • Marked as answer by It_s Meee Sunday, May 3, 2009 3:56 PM
    Thursday, April 30, 2009 6:22 AM

All replies

  • HTTP uses a defined, standardized protocol for the framing of requests and the format of responses. It is layered over the top of TCP which is layered over sockets

    sockets use TCP or UDP and have no inherent standardized way of framing communication but are more flexible
    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    Wednesday, April 29, 2009 3:14 PM
  • hello richard
                         Many thnaks for reply  .... I am new to wcf , .net so plz don't mind any stupid question. i found wcf very interesting,....

    My problem is that i am working for stock application. and i can't afford to exposs the port which i have to if i use tcp..........  so i have to use
    HTTP on port 80 where client and server can communication, duplex communication with http binding (polling duplex http binding) is excellent


    but if i use client poll the data from server ...... so who can i manage that my every client should be sync.....mean( every client(silverlight browser app) should have same stock price etc... which is very important.....)


    any possibility in wcf + silverlight 2 or 3

    regards


    It's Me
    Thursday, April 30, 2009 4:24 AM
  • ok, so the speed of light is finite. Therefore, even if it were technically possible to push the request simultaneously to every client (which I have already explained is not possible), the clients woulod receive them at different times as they are different distances from the service.

    So, what is the actual business requirement driving "every client(silverlight browser app) should have same stock price"? What does this, in practical terms, mean? They must all have the same stock price within 1ms? within 1 second? within 10 seconds? What will the client do with the stockprice that makes it so incredibly time sensitive?
    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    • Marked as answer by It_s Meee Sunday, May 3, 2009 3:56 PM
    Thursday, April 30, 2009 6:22 AM