Get Advice Icon

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

Cowboy
Cowboy

584
26
+ 1
15
Puma
Puma

263
148
+ 1
16
Add tool

Cowboy vs Puma: What are the differences?

Cowboy: Small, fast, modular HTTP server written in Erlang. Cowboy aims to provide a complete HTTP stack in a small code base. It is optimized for low latency and low memory usage, in part because it uses binary strings. Cowboy provides routing capabilities, selectively dispatching requests to handlers written in Erlang; 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.

Cowboy and Puma can be primarily classified as "Web Servers" tools.

"Websockets integration" is the top reason why over 6 developers like Cowboy, while over 2 developers mention "Easy" as the leading cause for choosing Puma.

Cowboy and Puma are both open source tools. Puma with 5.78K GitHub stars and 987 forks on GitHub appears to be more popular than Cowboy with 5.59K GitHub stars and 999 GitHub forks.

What is Cowboy?

Cowboy aims to provide a complete HTTP stack in a small code base. It is optimized for low latency and low memory usage, in part because it uses binary strings. Cowboy provides routing capabilities, selectively dispatching requests to handlers written in Erlang.

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.
Get Advice Icon

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

Why do developers choose Cowboy?
Why do developers choose Puma?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Cowboy?
    What companies use Puma?

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

    What tools integrate with Cowboy?
    What tools integrate with Puma?
      No integrations found
        No integrations found
        What are some alternatives to Cowboy and Puma?
        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.
        Apache Tomcat
        Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.
        OpenResty
        OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.
        See all alternatives
        Decisions about Cowboy and Puma
        Jerome Dalbert
        Jerome Dalbert
        Senior Backend Engineer at StackShare | 6 upvotes 97.3K views
        atStackShareStackShare
        Unicorn
        Unicorn
        Puma
        Puma
        Rails
        Rails

        We switched from Unicorn (process model) to Puma (threaded model) to decrease the memory footprint of our Rails production web server. Memory indeed dropped from 6GB to only 1GB!

        We just had to decrease our worker count and increase our thread count instead. Performance (response time and throughput) remained the same, if not slightly better. We had no thread-safety errors, which was good.

        Free bonus points are:

        • Requests are blazing fast on our dev and staging environments!
        • Puma has first-class support for WebSockets, so we know for sure that Rails ActionCable or GraphQL subscriptions will work great.
        • Being on Puma makes us even more "default Rails"-compliant since it is the default Rails web server these days.
        See more
        Interest over time
        Reviews of Cowboy and Puma
        No reviews found
        How developers use Cowboy and Puma
        Avatar of Mathias Vonende
        Mathias Vonende uses CowboyCowboy

        Application/http-server for everything except static data.

        Avatar of Oded Arbel
        Oded Arbel uses PumaPuma

        Server for Rails-powered API

        Avatar of Satoru Ishikawa
        Satoru Ishikawa uses PumaPuma

        Heroku 銇у嫊銇嬨仚Web銈点兗銉愩兗

        Avatar of Jamie Yun
        Jamie Yun uses PumaPuma

        expert

        How much does Cowboy cost?
        How much does Puma cost?
        Pricing unavailable
        Pricing unavailable