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

Cowboy

598
59
+ 1
19
Puma

357
235
+ 1
19
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.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Cowboy
Pros of Puma
  • 8
    Websockets integration
  • 6
    Cool name
  • 3
    Good to use with Erlang
  • 2
    Anime mascot
  • 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

Sign up to add or upvote prosMake informed product decisions

Cons of Cowboy
Cons of Puma
    Be the first to leave a con
    • 0
      Uses `select` (limited client count)

    Sign up to add or upvote consMake informed product decisions

    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.

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

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

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

    Blog Posts

    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