Performance issues for WCF service and MVC WebAPI

I plan to create a web service to provide JSON / XML data to the client via HTTP. And I plan to do it RESTful, but this is only the best option, not a must. And, as a rule, I will post it in IIS.

To achieve this, in my analysis, I have 3 options (I need to use MS technologies): WCF service, WCF data service, and MVAP4 WebAPI. I still have one more question before making a final decision. Yes, there are many discussions on the Internet when you need to choose one of them, but they focus on other topics, such as the protocol, are easily implemented, use HTTP, etc. Etc.

However, I am focusing on another aspect: from the performance aspect, which is the best (suppose I use them correctly) of 3 options (to provide JSON / XML via HTTP)?

+7
source share
1 answer

Honestly, there is no final answer to your question, it all depends on what traffic you expect (or want to serve), what functionality your REST api will have (which also affects performance) and much more.

Rick Stahl has created a good blog poster about this. http://www.west-wind.com/weblog/posts/2012/Sep/04/ASPNET-Frameworks-and-Raw-Throughput-Performance

This is not the final answer to your question (namely, which is better). But this should give you a better perspective and, hopefully, a better position to answer your question.

+10
source

All Articles