Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REST based HTTP API - should I use WCF?

I would like to code a REST based HTTP API which is accessible from .NET and any other language like for example Python.

Should I use WCF for this? Or will that make the other languages harder to interop with my API?

I want the server to carry no state at all, and I want to be able to take advantage of HTTP persistent connections because a typical clinet will make many HTTP calls in a row. (maybe 2 hours straight of calls)

I am allowed to use .NET 4.

like image 311
wcf guru needed Avatar asked Feb 28 '26 03:02

wcf guru needed


2 Answers

There is new stuff coming in WCF to support HTTP and REST. See, http://wcf.codeplex.com/

I wrote an intro blog post here http://www.bizcoder.com/index.php/2010/10/28/wcf-http/

like image 176
Darrel Miller Avatar answered Mar 02 '26 17:03

Darrel Miller


WCF can do about anything you'll need, but it has a steep learning curve. The REST Starter Kit from Microsoft is very helpful.

Another .NET REST framework is OpenRasta - I haven't personally used it, but I've heard good things about it.

like image 33
Ben Avatar answered Mar 02 '26 16:03

Ben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!