Multiple Or Single tcp connection?

Nov 23, 2016 at 7:17am
I implemented a gateway program,
which transfer message between clients and inner server

my question is :

between the gateway and the inner server,
Only one tcp connection is enough?
If I establish more such as 8 connections,would the transfer be more efficient,fast?
(I can maintain a map,to indicate a client which connection(0-7) should be used)
by the way,there could be more than one gateway.
I mean there are several gateways for clients,all the gateway connect to the inner server.
Thank you

Last edited on Nov 23, 2016 at 7:24am
Nov 26, 2016 at 12:25am
nobody??
Nov 26, 2016 at 12:29am
IO is usually best left in a single thread. The bottleneck is usually bandwidth, disk IO, or something similar, not the CPU.
Nov 26, 2016 at 2:10pm
thank you
Topic archived. No new replies allowed.