1

I need to implement server-client communications which must keep a lot of connections (1k-3k). What better to choose, IOCP or Task Async?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Kernighan
  • 41
  • 1
  • 6

1 Answers1

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