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

Jetty

379
270
+ 1
44
Apache Tomcat

11.9K
8.3K
+ 1
200
Add tool

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.

Decisions about Jetty 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 Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Jetty
Pros of Apache Tomcat
  • 15
    Lightweight
  • 10
    Very fast
  • 9
    Embeddable
  • 5
    Scalable
  • 5
    Very thin
  • 79
    Easy
  • 72
    Java
  • 48
    Popular
  • 1
    Spring web

Sign up to add or upvote prosMake informed product decisions

Cons of Jetty
Cons of Apache Tomcat
  • 0
    Student
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Jetty?

    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.

    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!

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

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

    What tools integrate with Jetty?
    What tools integrate with Apache Tomcat?

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

    Blog Posts

    What are some alternatives to Jetty and Apache Tomcat?
    Netty
    Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.
    Wildfly
    It is a flexible, lightweight, managed application runtime that helps you build amazing applications. It supports the latest standards for web development.
    JBoss
    An application platform for hosting your apps that provides an innovative modular, cloud-ready architecture, powerful management and automation, and world class developer productivity.
    GlassFish
    An Application Server means, It can manage Java EE applications You should use GlassFish for Java EE enterprise applications. The need for a seperate Web server is mostly needed in a production environment.
    Jersey
    It is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. It provides it’s own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development.
    See all alternatives