I need to implement server-client communications which must keep a lot of connections (1k-3k). What better to choose, IOCP or Task Async?
Asked
Active
Viewed 81 times
1
-
What language and platform? – usr Apr 10 '15 at 10:41
-
C#. Wndows Platform. – Kernighan Apr 10 '15 at 11:03
1 Answers
1
3k connections force an async design. This is true. However, this is not a very high amount of connections. As long as you do not make severe mistakes this will work reliably under pretty much any modern async IO style.
Simply use managed code and await
.
I believe .NET uses IOCP under the covers for async IO on sockets anyway. So you get nice task-based async IO with IOCP.

usr
- 168,620
- 35
- 240
- 369