WCF VS. Sockets

前端 未结 4 925
孤街浪徒
孤街浪徒 2020-12-09 05:38

I would like to know which of WCF or .NET Sockets is the more efficient and the more recommended in a game developpment scenario.

Here are the different parts of the

4条回答
  •  無奈伤痛
    2020-12-09 06:25

    If you want to maximize performance sockets is the way to go, WCF has both data and processing overhead. But... if performance is that critical to you, you should also consider assembler instead of c#.

    WCF will handle 3-4 requests per second without a blink.

    I would start with WCF, it will save you a lot of development time, no need to roll your own parser etc. You can concentrate on other parts on the game instead. If it actually turns our that WCF is too slow for your game you can throw WCF out and go for sockets instead.

提交回复
热议问题