Jetty VS Spring Boot

Compare Jetty vs Spring Boot and see what are their differences.

Jetty

Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more (by jetty)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Jetty Spring Boot
14 166
3,732 72,230
0.5% 1.2%
9.9 10.0
7 days ago 7 days ago
Java Java
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Jetty

Posts with mentions or reviews of Jetty. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-02.
  • Spring Boot Monitoring with Open-Source Tools
    5 projects | dev.to | 2 Dec 2023
    Manual instrumentation allows you to define your Spans within the code itself rather than relying on automatic instrumentation finding the entry point for a trace. Manual instrumentation is especially helpful for applications that don’t use an application server such as Tomcat, JBoss, or Jetty.
  • Security of Eclipse Jetty dependencies
    3 projects | /r/qztray | 2 Nov 2022
    So, 9.4.48 fixes the first two CVEs, but the last one doesn't mention 9.4 at all, so I'm not sure if that's left out due to EOL status for 9.4.
  • Choose the right Java runtime for the job (2020, Quarkus vs Open Liberty vs traditional application server)
    4 projects | /r/java | 7 Aug 2022
    If you're doing something pretty simple and need something really lighweight, however, you could go with something like Javalin or even use Jetty directly (the HTTP server which powers Javalin and many other frameworks by default). It's not that hard to do that and that's what I actually would do myself for almost everything... the fewer moving parts you have in your application, the better chances you have of keeping everything up-to-date and the less chance to mess up (with a caveat: bigger frameworks may give you secure defaults that if you're not experienced enough you may not even know about, so it may be better to not go low level if you're new-ish to running web applications securely).
  • The 12-Factor App Building Methodology
    3 projects | dev.to | 2 Jul 2022
    Example: Little Johnny was developing a Java web app and thinking about how he would configure Tomcat to listen to requests and redirect the data into his app... until he remembered this would violate Factor 7! Instead, he decided to declare Jetty as a dependency, keeping the HTTP service inside the app instead of configuring an external web server and then injecting its functionalities. Now, whenever he wants to instantiate another server for this app, all he has to do is installing dependencies and running the app, isn't it convenient?
  • Looking for maintainer for jvm-brotli
    7 projects | /r/java | 18 Apr 2022
    Hi /r/java! Jetty is considering implementing dynamic Brotli compression, but the current JVM wrapper for Google's Brotli (jvm-brotli) is somewhat ... abandoned.
  • Non Spring users what are you using ??
    7 projects | /r/java | 2 Nov 2021
    Multiple applications in the same JVM? Wildfly, Tomcat, Jetty.
  • Packaging and deploying Spring Boot applications as WAR files
    4 projects | dev.to | 2 Sep 2021
    Download Eclipse Jetty from the project website. Make sure to download the correct version, depending on the Java and Servlet API versions that your application uses. For example, in the case of Vaadin applications, download Eclipse Jetty 9.
  • Clojure Ring เบื้องต้น
    4 projects | dev.to | 29 Jun 2021
  • Can someone help me understand ring's async handlers (specifically, with Jetty)
    4 projects | /r/Clojure | 30 Mar 2021
    I've now got this working, sort of, so thank you for that! The sort of is because I'm getting the response I expected, but I'm also getting an exception from Jetty for every request. I've followed your pattern as given above, and when I curl the server I get the expected data back. But the REPL I'm running it in for local dev also gives the error Exception in thread "async-dispatch-[0-9]+" org.eclipse.jetty.http.BadMessageException: 500: No version. Googling that leads me to https://github.com/eclipse/jetty.project/issues/650, which seems to suggest that something else is attempting to handle the message a second time, while my handler is parked for a response in the go block? If I wrap the (a/go ...) in (a/, to effectively force it to be synchronous again, the error goes away.
  • The Kotlin Foundation – By Jetbrains and Google
    4 projects | news.ycombinator.com | 13 Feb 2021
    Java developers are spoiled for choice.

    There's everything, from the simplest possible https://sparkjava.com/, to the a little bit nicer https://javalin.io/ (which has a Kotlin wrapper), to the high performance and full framework https://vertx.io/ (which always had great multi-lingual support within the JVM), to the newer and GraalVM-friendly https://micronaut.io/ and https://quarkus.io/ ... for the Enterprise-only crowd, you still have the JEE successor, https://jakarta.ee/ and Oracle's own https://helidon.io/#/ (which likes to position itself as microservice focused, like Micronaut and Quarkus). Not to mention lower level libraries you can use, like https://www.eclipse.org/jetty/ and https://netty.io/.

    Ktor has a tough fight to become dominant even in the Kotlin world.

    Spring Boot is, still, definitely the most popular option, but it's still just one of very very many!

Spring Boot

Posts with mentions or reviews of Spring Boot. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-04.
  • Walmart is migrating the remaining F# code into Java
    8 projects | news.ycombinator.com | 4 Mar 2024
    - Usually manually wired and configured vs the spring boot "starter" pattern of having libraries that automatically do some of the manual setup work for you: https://github.com/spring-projects/spring-boot/blob/main/spr...

    I wish more client library sets had the feature-matrix that the pulsar one does, because in practice most end up being the same: Java supports everything because it's either built in the same codebase or is the most used client and gets the most support, while the dotnet client codebase has many feature-requests or performance improvement issues, often leading to a "third-party client" being created.

  • AI commented the entire Spring Boot codebase
    2 projects | news.ycombinator.com | 26 Feb 2024
    2 projects | news.ycombinator.com | 26 Feb 2024
  • Spring Boot 3 And Java 17 Migration Guide
    2 projects | dev.to | 16 Dec 2023
    If you’re currently running with an earlier version of Spring Boot, I recommend that you upgrade to Spring Boot 2.7 before migrating to Spring Boot 3.0. It minimizes compatibility issues as much as possible.
  • Netflix Uses Java
    3 projects | news.ycombinator.com | 10 Oct 2023
    It's weird that some people including you directly attack my competence. As a power user you should have plenty of experience getting something to work that is not properly document, does not work how the documentation promised it to, or has weird problems on top of it. Look at idiotic things like this:

    https://github.com/spring-projects/spring-boot/issues/33044

    Take any similar issue and you'll see a bunch of people who try to find a solution for them because they just aren't repeatable at all. The underlying issue is the auto configuration doing things you can't follow quite properly. It's like it wasn't mean to be understood. Issues like the one I linked above also show me that the spring dev crowd also doesn't understand the ecosystem anymore. The problem is complexity and automagic.

  • What's New in Spring Framework 6.1
    5 projects | news.ycombinator.com | 16 Aug 2023
    An interested reader can decide for themselves:

    https://github.com/spring-projects/spring-boot/tree/main/spr...

    5 projects | news.ycombinator.com | 16 Aug 2023
    > Spring has gotten so bloated.

    I'd call Spring feature-rich than bloated. You can always shed weight that you don't want to carry.

    > Plus there's multiple ways of doing the same thing. e.g. JPA, spring-data.

    That's because there are different ways to solve a problem. Someone may want an ORM-based approach to connect to the database; they can choose spring-data-jpa. Someone may want to use JDBC with a light abstraction on top of it; they can choose spring-data-jdbc. It's all about choices and right tradeoffs and Spring offers plenty of them.

    > they don't provide easy upgrade paths between majors versions

    That's not my experience. I've been happily upgrading 2.x.x versions and plan to upgrade to 3.2.x when it is ready. But depending on the codebase, I admit it can be painful. Projects like OpenRewrite[1] might help here.

    > and they stop updating vulnerabilities on older major versions.

    This is not news. They want you to pay for extended support if you need it.

    > No docs on migration.

    They do maintain migration docs on GitHub wiki which are a lot more detailed than their blog posts on migration. Here's the latest one to upgrade from Spring Boot 2 to 3: https://github.com/spring-projects/spring-boot/wiki/Spring-B...

    [1]: https://github.com/openrewrite/rewrite

  • Secure Java URL encoding and decoding
    3 projects | dev.to | 15 Aug 2023
    Explicitly decoding URL query parameters occurs less often because many frameworks, including Spring Boot, handle decoding automatically.
  • SpringBoot Serverless REST API - ApiGateway+Lambda, deployed using AWS SAM
    8 projects | dev.to | 12 Aug 2023
    https://aws.amazon.com/lambda/ https://aws.amazon.com/api-gateway/ https://aws.amazon.com/serverless/sam/ https://aws.amazon.com/cloudformation/ https://aws.amazon.com/s3/ https://spring.io/projects/spring-boot https://start.spring.io
  • Managing AI-powered Java App With API Management
    6 projects | dev.to | 23 Jun 2023
    In this article, we will explore how to integrate OpenAI's ChatGPT APIs with a Spring Boot application and manage the APIs using Apache APISIX, an open-source API gateway. This integration will allow us to leverage the power of ChatGPT, a state-of-the-art language model developed by OpenAI, in our Spring Boot application, while APISIX will provide a robust, scalable, and secure way to manage the APIs.

What are some alternatives?

When comparing Jetty and Spring Boot you can also consider the following projects:

helidon - Java libraries for writing microservices

Play - The Community Maintained High Velocity Web Framework For Java and Scala.

javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]

Quarkus - Quarkus: Supersonic Subatomic Java.

Jooby - The modular web framework for Java and Kotlin

ZK - ZK is a highly productive Java framework for building amazing enterprise web and mobile applications

nanohttpd - Tiny, easily embeddable HTTP server in Java.

WildFly - WildFly Application Server

Apache Wicket - Apache Wicket - Component-based Java web framework

PrimeFaces - Ultimate Component Suite for JavaServer Faces

Ratpack - Lean & powerful HTTP apps

Grails - The Grails Web Application Framework