Searching for patterns to create a TCP Connection Pool for high performance messaging

Posted by JoeGeeky on Stack Overflow See other posts from Stack Overflow or by JoeGeeky
Published on 2010-05-13T22:03:01Z Indexed on 2010/05/13 22:04 UTC
Read the original article Hit count: 297

I'm creating a new Client / Server application in C# and expect to have a fairly high rate of connections. That made me think of database connection pools which help mitigate the expense of creating and disposing connections between the client and database.

I would like to create a similar capability for my application and haven't been able to find any good examples of how to apply this pattern. Do I really need to spin up an instance of a TcpClient every time I want to send a message to the server and receive a receipt message? Each connection is expected to transport between 1-5KB with each receiving a 1KB response message.

I realize this question is somewhat vague, but I am starting from scratch so I am open to suggestions. Even if that means my suppositions are all wrong.

© Stack Overflow or respective owner

Related posts about tcpip

Related posts about tcpclient