Puma vs Apache Tomcat

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

Puma

770
254
+ 1
19
Apache Tomcat

14.6K
10.7K
+ 1
201
Add tool

Puma vs Apache Tomcat: 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; Apache Tomcat: An open source software implementation of the Java Servlet and JavaServer Pages technologies. Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Puma and Apache Tomcat belong to "Web Servers" category of the tech stack.

"Easy" is the top reason why over 2 developers like Puma, while over 76 developers mention "Easy" as the leading cause for choosing Apache Tomcat.

Puma and Apache Tomcat are both open source tools. It seems that Puma with 5.78K GitHub stars and 987 forks on GitHub has more adoption than Apache Tomcat with 3.51K GitHub stars and 2.4K GitHub forks.

According to the StackShare community, Apache Tomcat has a broader approval, being mentioned in 566 company stacks & 430 developers stacks; compared to Puma, which is listed in 73 company stacks and 30 developer stacks.

Advice on Puma and Apache Tomcat
Mark Ndungu
Software Developer at Nouveta · | 4 upvotes · 12.9K views
Needs advice
on
PumaPuma
and
UnicornUnicorn

I have an integration service that pulls data from third party systems saves it and returns it to the user of the service. We can pull large data sets with the service and response JSON can go up to 5MB with gzip compression. I currently use Rails 6 and Ruby 2.7.2 and Puma web server. Slow clients tend to prevent other users from accessing the system. Am considering a switch to Unicorn.

See more
Replies (1)
Recommends
PumaPuma

Consider trying to use puma workers first. puma -w basically. That will launch multiple puma processes to manage the requests, like unicorn, but also run threads within those processes. You can turn the number of workers and number of threads to find the right memory footprint / request per second balance.

See more
Decisions about Puma and Apache Tomcat

I was in a situation where I have to configure 40 RHEL servers 20 each for Apache HTTP Server and Tomcat server. My task was to 1. configure LVM with required logical volumes, format and mount for HTTP and Tomcat servers accordingly. 2. Install apache and tomcat. 3. Generate and apply selfsigned certs to http server. 4. Modify default ports on Tomcat to different ports. 5. Create users on RHEL for application support team. 6. other administrative tasks like, start, stop and restart HTTP and Tomcat services.

I have utilized the power of ansible for all these tasks, which made it easy and manageable.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Puma
Pros of Apache Tomcat
  • 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
  • 79
    Easy
  • 72
    Java
  • 49
    Popular
  • 1
    Spring web

Sign up to add or upvote prosMake informed product decisions

Cons of Puma
Cons of Apache Tomcat
  • 0
    Uses `select` (limited client count)
  • 1
    Blocking - each http request block a thread

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 Apache Tomcat?

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

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

Jobs that mention Puma and Apache Tomcat as a desired skillset
What companies use Puma?
What companies use Apache Tomcat?
See which teams inside your own company are using Puma or Apache Tomcat.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Puma?
What tools integrate with Apache Tomcat?
    No integrations found

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    What are some alternatives to Puma and Apache Tomcat?
    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