top | item 4432222

F# Web Services on any platform in and out of a web server

29 points| cdl | 13 years ago |servicestack.net

11 comments

order
[+] mythz|13 years ago|reply
Cool! (Core member of ServiceStack here :)

For those interested I used F# on OSX/Mono for this post. Since F# is quite terse, I prefer to use a POTE (Plain Old Text Editor) to develop with it on OSX. You can configure Sublime Text to work with F# with these instructions (inc REPL in comments): http://onorioc.wordpress.com/2012/01/26/configuring-sublime-...

ServiceStack runs on .NET and Mono, even our http://www.servicestack.net website (inc. all live demos) have always run on Linux/Nginx + Mono/FastCGI for years.

We've got a wiki page on how you can run a self-hosted ServiceStack as a Linux daemon here: https://github.com/ServiceStack/ServiceStack/wiki/Run-Servic.... Also includes instructions on how to configure and run it behind a Apache + Nginx reverse proxy.

You can also run ServiceStack inside an ASP.NET host which you can host in Apache (with mod_proxy) or in Nginx (with Mono/FastCGI) - some configuration on both of these configurations is here: https://groups.google.com/forum/#!msg/servicestack/04GQLsQ6Y...

If it helps here are the Nginx Mono/FastCgi server conf files for servicestack.net: https://groups.google.com/forum/#!msg/servicestack/kzfS88Rld...

[+] jackfoxy|13 years ago|reply
> Since F# is quite terse, I prefer to use a POTE (Plain Old Text Editor) to develop with it on OSX.

I bow in your general direction. F# is terse, but most mortals rely on goodies like intellisense and red-squigglies in some IDE. Getting over the hump of writing non-trivial F# that builds correctly is, well, non-trivial.

[+] skrebbel|13 years ago|reply
I've been wondering, is there any firm or organisation backing ServiceStack? I guess that, maybe more than other ecosystems, many .NET developers are slightly afraid to heavily depend on something of which the future is uncertain (in a way, we're spoiled by MS's big spendings on all kinds of fancy tools). I recognise that in a way, this situation hurts the ecosystem, because people are afraid of using non-MS-tech, which limits commitment to decent open-source projects. Nevertheless, I have to admit sharing the same worries. Should I worry about that wrt ServiceStack?
[+] cdl|13 years ago|reply
Because WCF is an "anti-pattern promoting, over architected abstraction"
[+] waf|13 years ago|reply
This article is kind of old (September 2011), and I notice that the last stable release of F# was April 12, 2010. Is F# still a maintained project at Microsoft, or are people moving to something else? I know a lot of the more functional JVM languages (clojure, scala) also run on the .NET CLR.
[+] cdl|13 years ago|reply
Check out What's New for Visual F# in Visual Studio 2012

http://msdn.microsoft.com/en-us/library/hh370982.aspx

New features include:

Type Providers - OData (Open Data) Services - Database Connections such as SQL - Database Schema - Data specified by the Entity Data Model format - Web services in the WSDL format.

Query Expressions

Auto-implemented properties

Parameter Help

Enhanced IntelliSense

Create applications that run against the following versions of the .NET Framework: 2.0, 3.0, 3.5, 4, and 4.5