Should I use WCF or raw sockets?

Technology CommunityCategory: WCFShould I use WCF or raw sockets?
VietMX Staff asked 3 years ago

Sockets are very low level. Today I would never go down to such a low level as sockets unless you really have to. Working with high level abstractions is way more productive and creative. The big advantage of Remoting or WCF is that you can pass objects between server and client and call methods on them on each side. Also be aware that the performance of Net.tcp communication over WCF is much worse than plain socket communication. It is because WCF simplifies a lot of things but those simplification and generalizations slows processing. So it depends.