Total Pageviews

Wednesday 27 November 2013

A Concurrent Web Server for Ruby:puma

Built for Speed & Concurrency

Current Release: 2.6.0
Unlike other Ruby Webservers, Puma was built for speed and parallelism. Puma is a small library that provides a very fast and concurrent HTTP 1.1 server for Ruby web applications. It is designed for running Rack apps only.
What makes Puma so fast is the careful use of a Ragel extension to provide fast, accurate HTTP 1.1 protocol parsing. This makes the server scream without too many portability issues.

Quickstart with Bundler

If you are using Bundler, just add Puma to your project's GemFile:

gem "puma"
Once you've installed your bundle, start Puma by running:

bundle exec puma

Quickstart without Bundler

If you are not using Bundler, you can install Puma directly from the command line:
gem install puma
Once installed, start Puma by running:
puma

Resources