Wednesday, October 30, 2013

WCF vs. ASP.NET Web API

WCF vs. ASP.NET Web API


1. WCF is a One stop development for SOAP Services and REST services.
2.ASP.NET WEB API  is a lightweight 
3.WCF supports many transports where as WEb API supports http only.
4.WCF Rest Service methods decorated with WebGet or WebInvoke
   where as Web API the class is derived from APIController,

5. WCF has many decorated attributes WEB API simplified version of WCF 
6. URI path differs in WCF and WEB API
    WEb API uses MVC URL routing technique
7. Web API as a Service Layer may not be optimum solution from a performance standpoint. because there is an HTTP overhead,
   In this case TCP or Named Pipes could be better choice. 
so WCF outshine WEB API.

8.ASP.NET WEB API is well suited for communication across the firewall.