Marcel de Koster

REST: ASP.NET MVC vs. WCF REST vs. ADO.NET Data Services

On the .NET platform we have several possible solutions to build a RESTful services. Three of them are:

I have tried to figure out when to use which solution to build a RESTful service. Conclusion: I could not find a reasonable set of rules to determine which technology to use. Maybe this will be a start:

  • ASP.NET MVC gives full control of your implementation of the RESTful service, but you have to build much plumbing code yourself.
  • WCF REST provides REST functionality (including RSS and ATOM) out of the box. There is no need to do the serializing and deserializing yourself.
  • If the service will focus on CRUD operations on Entities ADO.NET Data Services is good choice.

Feel free to add additional information on this topic.

Comments

Marco said:

I am looking into integrating ASP.NET MVC with WCF. In my head they solve 2 different problems. But I feel a bit confused and overwhelmed by all these technologies options.. Do you think it makes sense and it could be possible?

You said ASP.NET MVC doesn't have much of the "plumbing" and WCF would provide that.

# December 8, 2009 4:35 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 7 and 2 and type the answer here: