The end of WCF is on the horizon

I’m still a great fan of WCF and all it brings with it. This was one of the best developments in the .NET world and made it easy to implement multi process software, distributed systems and SOA.

Why will it no longer be required?

Web Api 2 and SignalR

Great open source frameworks.

source code SignalR : https://github.com/SignalR/SignalR
source code Web Api 2 : http://aspnetwebstack.codeplex.com/

With these 2 frameworks, Microsoft has made WCF almost redundant. If I were to compare the WCF full feature set with Web Api 2 and SignalR, it would look something like this for me:

WCF_WebApi2_SignalR2

What’s WCF got that Web Api 2 and SignalR don’t have:

  1. WCF async persistent communication: WCF with MSMQ
  2. support for distributed transactions (via MSDTC)
  3. Named Pipes high performance communication (I would like a performance test here to see the difference)
  4. UDP

I’m probably missing a lot, but the new frameworks cover most of the use cases or requirements which would make me choose WCF in my architecture.

UPDATE June 2014
ODATA V4 will not be supported by WCF. Only Web API will support ODATA V4. WCF is starting to loss features now.

It was nice knowing WCF, now go and join Silverlight

Links:

http://msdn.microsoft.com/en-us/library/jj823172.aspx

http://akhileshyadav.wordpress.com/2013/05/13/wcf-vs-asp-net-web-apis/

http://msdn.microsoft.com/en-us/library/aa480210.aspx

http://www.codeproject.com/Questions/558542/WhatplusisplusdifferenceplusbetweenplusWCFplusvspl

http://realworldsa.blogspot.ch/2011/09/today-microsoft-killed-net-good-bye-wcf.html

http://www.codeproject.com/Articles/341414/WCF-or-ASP-NET-Web-APIs-My-two-cents-on-the-subjec

http://msdn.microsoft.com/en-us/library/dd456789(v=vs.110).aspx

http://devmanagement.wordpress.com/2013/01/08/asp-net-web-api-vs-wcf-what-should-i-use-for-my-project/

http://mattmilner.com/Milner/Blog/post/2012/02/28/WebAPI-or-WCF.aspx

http://de.slideshare.net/adnanmasood/presentation-web-api-vs-wcf

4 comments

  1. I agree. I switched to Web API almost as soon as it got out.

    1. Thanks for your comment. And SignalR covers most of what Web Api doesn’t support from WCF. (full-duplex communication was one of the main reasons for still using WCF but SignalR does this besser now.)

  2. After using WCF on some projects I’ve seen Filip WOJCIESZYN presentation at Microsoft Tech Days in Basel and I was impressed from the simplicity of this framework. As Filip said about the KISS principle: ‘Keep it simple and standard’. And don’t forget to look at http://webapicontrib.github.io/.
    I will switch my current project to WEB.Api 2.0. Thanks Damien.

  3. I blog often aand I really appreciate your content.
    The article has rwally peaked my interest.
    I will bookmark your website annd kwep checking
    for neww detais about once pper week. I opted in
    for yourr Feed too.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: