How slow are TCP sockets compared to named pipes on Windows for localhost IPC?

后端 未结 6 886
广开言路
广开言路 2020-12-02 11:33

I am developing a TCP Proxy to be put in front of a TCP service that should handle between 500 and 1000 active connections from the wild Internet.

The proxy is runn

6条回答
  •  我在风中等你
    2020-12-02 12:06

    http://msdn.microsoft.com/en-us/library/aa178138(v=sql.80).aspx

    Let me sum it up for you. If you are worried about performance then use TCP/IP. But if you have a really fast network and your not worried about performance then Named Pipes would be "neat" in that it might save you some code.

    Not to mention, if you stick to TCP then you will have something that can be scaled, and even load balanced when the time comes.

    Cheers,

提交回复
热议问题