Click here to Skip to main content
16,020,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
I started working on mobile development wherein I have to create services that will be consumed by the client.

These services can be created using MVC Web API or WCF REST, both are non-SOAP services and make use of HTTP protocol.

I came across situation where in I got confused
1. Which one to use <br />
2. How MVC Web API are faster than WCF REST?


Any comments?

Thanks in advance :)
Posted

Well, you have mentioned "Mobile Development" in your question title. Check these
ASP.Net Web API vs WCF[^]
REST/Web API and WCF[^]
ASP.NET Web API vs WCF – Where do we go from here?[^]
WebAPI or WCF?[^]
 
Share this answer
 
Hi,

I don't think you should get bogged down by which is faster. You should look at what is going to be quickest to develop that is manageable by you or your team.

WebAPI would be my choice for pure HTTP driven REST services. Why? Because although the webAPI was born out of WCF REST it is in fact a HTTP REST implementation that already has the bells and whistles for HTTP services. WCF REST is fairly convoluted to set up and there are more lines of code to it. If you are doing MVC sites, then working with the WebAPI should be second nature.

WCF however has many other benefits that developers can use such as throttling, scaling and concurrency as well as different end points (Message queue, TCP etc). However I feel this would be bloat for a basic HTTP service.

Hope that helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900