ServerSide: A Fast HTTP Server for Ruby

ServerSide is an HTTP server based on EventMachine, a fast event processing library that offers superior scalability. ServerSide offers features such as persistent connections, HTTP streaming, HTTP caching, and more. ServerSide also includes tools to easily serve static files and create clusters.

Resources

To check out the source code:

svn co http://serverside.googlecode.com/svn/trunk

Contact

If you have any comments or suggestions please send an email to ciconia at gmail.com and I’ll get back to you.

Installation

sudo gem install serverside

Usage

Once you have the ServerSide gem installed, you can use the serverside script to control servers. For example:

serverside start .

will start an HTTP server on port 8000, serving the content of the working directory. You can stop the server by running serverside stop .

To run the server without forking, use the ‘serve’ command:

serverside serve .

Running a Cluster of Servers

ServerSide makes it easy to control a cluster of servers. Just supply a range of ports instead of a single port:

serverside -p 8000..8009 start .