The modern web has three main requirements: it must be responsive, scalable, and deal with tons of data. Features such as asynchronous workflows, composability, or data tools make F# a perfect fit for web programming. In this chapter, we will review the most common tools used for web development with F# and see the benefits they bring to the table to decide which one is the most appropriate for our use case.
You will learn how to build web servers using some of the most common .NET libraries for this purpose, which are as follows:
- ASP.NET Web API: Thanks to its convention-based HTTP route bindings, it is very easy to build web services in F# using ASP.NET Web API, also remaining in the comfort of Microsoft tooling for web development.
- Suave: This is a web server specifically designed to take full advantage of F# and functional programming characteristics. Instead of controllers, as with ASP.NET, Suave defines routes using function composition, which gives you...