Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering F#

You're reading from   Mastering F# A comprehensive and in-depth guide to writing functional programs using F#

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher
ISBN-13 9781784393434
Length 264 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
 García-Caro Núñez García-Caro Núñez
Author Profile Icon García-Caro Núñez
García-Caro Núñez
 Fahad Fahad
Author Profile Icon Fahad
Fahad
Arrow right icon
View More author details
Toc

Chapter 7. Web Programming in F#

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images