これまで両方を使用して以来、WCF と Web API の間には多くの違いがあることがわかりました。どちらのテクノロジ スタックもさまざまなシナリオに適しているため、どちらが優れているとは言えません。これは構成とシナリオによって異なります。
Properties ASP.Net Web API WCF
--------------------------------------------------------------------------------------------------
End point (mainly) Http based SOAP based
Service Type Front End Back-end
Support caching, compression, versioning No
Framework ASP.net WCF
Orientation Resource Oriented Service Oriented
Transports http http, tcp, MSMQ, Named pipe
Message pattern Request reply request Reply, one way, duplex
Configuration overhead Less Much
Security lesser than WCF (web standard security) Very high (WS-I standard)
Hosting IIS IIS, Windows Service, Self hosting
Performance Fast A bit slower than Web API
In use from .NET 4.0 .NET 3.5
注: データは私の見解だけでなく、他の公式 Web サイトからも収集されています。