Co-Authored By:

Asked by: Valdas Anquela
technology and computing web developmentWhy WCF is faster than web service?
Moreover, why Web API is faster than WCF?
Since WCF is SOAP based, which uses standard XML schema over HTTP, it could lead to slower performance. WEB API is a better choice for simpler, light weight services. WEB API can use any text format including XML and is faster than WCF. WEB API can be used to create full-blown REST Services.
Just so, why we use WCF instead of Web services?
WCF has several important advantages over Web services and other Microsoft service architectures like . NET pipelining, Remoting. It supports more protocols for transporting messages than WS, which only support sending messages using HTTP. WCF supports sending messages using HTTP, as well as TCP, named pipes, and MSMQ.
WCF is dead. But for developing modern HTTP-based web services, WCF should be considered deprecated for this purpose. Didn't get the memo? Unfortunately, Microsoft is not in the habit of announcing when they are no longer recommending a specific technology for new application development.