Need advice about which tool to choose?Ask the StackShare community!
Jetty vs Apache Tomcat: What are the differences?
Developers describe Jetty as "An open-source project providing an HTTP server, HTTP client, and javax.servlet container". Jetty is used in a wide variety of projects and products, both in development and production. Jetty can be easily embedded in devices, tools, frameworks, application servers, and clusters. See the Jetty Powered page for more uses of Jetty. On the other hand, Apache Tomcat is detailed as "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.
Jetty and Apache Tomcat belong to "Web Servers" category of the tech stack.
"Lightweight" is the top reason why over 12 developers like Jetty, while over 76 developers mention "Easy" as the leading cause for choosing Apache Tomcat.
Jetty and Apache Tomcat are both open source tools. Apache Tomcat with 3.44K GitHub stars and 2.36K forks on GitHub appears to be more popular than Jetty with 2.54K GitHub stars and 1.39K GitHub forks.
According to the StackShare community, Apache Tomcat has a broader approval, being mentioned in 562 company stacks & 419 developers stacks; compared to Jetty, which is listed in 58 company stacks and 16 developer stacks.
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.
Pros of Jetty
- Lightweight14
- Very fast10
- Embeddable9
- Scalable5
- Very thin5
Pros of Apache Tomcat
- Easy79
- Java72
- Popular49
- Spring web1
Sign up to add or upvote prosMake informed product decisions
Cons of Jetty
- Student0
Cons of Apache Tomcat
- Blocking - each http request block a thread1