Need advice about which tool to choose?Ask the StackShare community!

Puma

444
226
+ 1
19
Unicorn

490
359
+ 1
295
Add tool

Puma vs Unicorn: What are the differences?

Puma: A Modern, Concurrent Web Server for Ruby. 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; Unicorn: Rack HTTP server for fast clients and Unix. Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.

Puma and Unicorn can be categorized as "Web Servers" tools.

"Easy" is the primary reason why developers consider Puma over the competitors, whereas "Fast" was stated as the key factor in picking Unicorn.

Puma and Unicorn are both open source tools. Puma with 5.78K GitHub stars and 987 forks on GitHub appears to be more popular than Unicorn with 1.35K GitHub stars and 249 GitHub forks.

Instacart, Harvest, and New Relic are some of the popular companies that use Unicorn, whereas Puma is used by Yammer, Product Hunt, and GrowthHackers. Unicorn has a broader approval, being mentioned in 176 company stacks & 55 developers stacks; compared to Puma, which is listed in 73 company stacks and 30 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Puma
Pros of Unicorn
  • 3
    Convenient
  • 3
    Free
  • 3
    Easy
  • 2
    Multithreaded
  • 2
    Default Rails server
  • 2
    First-class support for WebSockets
  • 2
    Consumes less memory than Unicorn
  • 1
    Lightweight
  • 1
    Fast
  • 81
    Fast
  • 59
    Performance
  • 36
    Web server
  • 30
    Open Source
  • 30
    Very light
  • 27
    Rack http server
  • 18
    Load balancing
  • 14
    Great process management

Sign up to add or upvote prosMake informed product decisions

Cons of Puma
Cons of Unicorn
  • 0
    Uses `select` (limited client count)
  • 4
    Not multithreaded

Sign up to add or upvote consMake informed product decisions

What is Puma?

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.

What is Unicorn?

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Puma?
What companies use Unicorn?
See which teams inside your own company are using Puma or Unicorn.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

Blog Posts

+44
109
49943
What are some alternatives to Puma and Unicorn?
Atlas
Atlas is one foundation to manage and provide visibility to your servers, containers, VMs, configuration management, service discovery, and additional operations services.
Panther
It is a convenient standalone library to scrape websites and to run end-to-end tests using real browsers.
NGINX
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
Apache HTTP Server
The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.
Microsoft IIS
Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. From media streaming to web applications, IIS's scalable and open architecture is ready to handle the most demanding tasks.
See all alternatives