R – Which’s the best performance between Asp.net MVC controller VS. Wcf for Silverlight Application

asp.net-mvcperformancesilverlight

I found that Asp.net Mvc controller can serve both Asp.net Mvc View and Silverlight application via DynamicActionResult(It can be Simple Action Result or Json Action Result depend on request type). So, I have 3 options for creating middle-tier for Silverlight application.

  1. Pure WCF Service Every request to WCF must be declare in interface. So, it's strongly-typed connection.
  2. Asp.net MVC Controller It can serve both Asp.net MVC View and Silverlight application at the same time.
  3. Using both of them I found that it's possible to doing this by using the answer in the following link. I think, It doesn't good idea for creating both of them.

WCF Service with Asp.net MVC application

Which's the best performance between WCF Service and Asp.net MVC Controller?

Thanks,

Best Answer

Do you have the kind of service that would benefit from caching? If so, my testing says that MVC with Output Caching turned on is very much faster than WCF.