title: High-performance alternatives to spray-can for building my single-function micro-webserver?
body: <p>I am building a "micro-webserver" whose sole function is to set a cookie and log a webpage visit to flatfile.</p>
  
  <p>I know this is possible using a micro <em>web</em> framework (e.g. <a href="http://flask.pocoo.org/" rel="nofollow">Flask</a>, <a href="http://tir.mongrel2.org/" rel="nofollow">Tir</a>) plus a fast webserver (e.g. <a href="http://nginx.org/" rel="nofollow">Nginx</a>, <a href="http://mongrel2.org/" rel="nofollow">Mongrel2</a>), but I want a more lightweight, high-performance approach with fewer "moving parts" - basically where some form of "webserver/networked app development framework" can be used to build a custom single-purpose micro-webserver.</p>
  
  <p>My current plan is to build it in Scala <a href="https://github.com/spray/spray-can" rel="nofollow">spray-can</a> (which is built on top of Akka) - but I'm also aware of:</p>
  
  <ul>
  <li>JavaScript: <a href="http://nodejs.org/" rel="nofollow">node.js</a></li>
  <li>Lua: <a href="http://openresty.org/" rel="nofollow">OpenResty</a>, <a href="https://github.com/luvit/luvit" rel="nofollow">Luvit</a></li>
  </ul>
  
  <p>Are there other ones I've missed - particularly in static typed/compiled languages (C/C++/Haskell/Go/other), and are there any meaningful performance benchmarks/comparisons between alternatives?</p>