Developing a high-performance web server in Concurrent Haskell

  • Authors:
  • Simon Marlow

  • Affiliations:
  • Microsoft Research Ltd., 7 JJ Thompson Avenue, Cambridge CB3 0FB, UK (e-mail: simonmar@microsoft.com)

  • Venue:
  • Journal of Functional Programming
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

Server applications, and in particular network-based server applications, place a unique combination of demands on a programming language: lightweight concurrency, high IF;O throughput, and fault tolerance are all important. This paper describes a prototype web server written in Concurrent Haskell (with extensions), and presents two useful results: firstly, a conforming server could be written with minimal effort, leading to an implementation in less than 1500 lines of code, and secondly the naive implementation produced reasonable performance. Furthermore, making minor modifications to a few time-critical components improved performance to a level acceptable for anything but the most heavily loaded web servers.