Jetty
javalin
Our great sponsors
Jetty | javalin | |
---|---|---|
15 | 23 | |
3,742 | 5,583 | |
0.4% | - | |
9.9 | 9.1 | |
6 days ago | almost 2 years ago | |
Java | Kotlin | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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
-
Example Java Application with Embedded Jetty and a htmx Website
As described on eclipse.dev/jetty: "Jetty provides a web server and servlet container, additionally providing support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and are freely available for commercial use and distribution."
-
Spring Boot Monitoring with Open-Source Tools
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
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.
-
Jetty adds Loom support
Fresh off the press: https://github.com/eclipse/jetty.project/issues/8007
-
Choose the right Java runtime for the job (2020, Quarkus vs Open Liberty vs traditional application server)
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
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?
- Jetty WONTFIX on PEM support (2021)
-
Looking for maintainer for jvm-brotli
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 ??
Multiple applications in the same JVM? Wildfly, Tomcat, Jetty.
-
Packaging and deploying Spring Boot applications as WAR files
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.
javalin
-
Looking for maintainer for jvm-brotli
If you've read this far, you might be interested to know that Javalin has been offering Brotli compression through jvm-brotli for three years already, and that there have been no (reported) issues. In other words, the effort required to release and maintain this is probably not huge.
- Using "equivalents" in other languages to help learn
-
Question about Kotlin from an ex-Java developer
I'm a big fan of Ktor (ktor.io) but another reasonable lightweight alternative is Javelin (https://javalin.io/). Heck even Spring Boot isn't that bad. HikariCP + JooQ (has both java and kotlin codegen) for DB access if you need and you're good to go.
-
Turbo: The speed of a SPA without writing JavaScript
A similar alternative that does not rely on web sockets is https://htmx.org. I have greatly enjoyed using it with some simpler web frameworks like https://javalin.io to do some prototyping and smaller projects. I'm sure if someone made a plug and play UI library like material UI for Angular on top of htmx you could absolutely fly through MVPs.
- Does Java has an equivalent to Django/Laravel/Node
-
Java Equivalent of Express.js for REST
Javalin
-
Java Servlets
If you're already familiar with most of the concepts around HTTP and web services, I'd recommend using something like https://javalin.io/ which is light weight frame work that makes getting something up and running quickly a very easy task.
-
Why people don't love Java?
I've been looking at https://javalin.io/ Seems close enough to express and some big names are using it, so I wouldn't say it's fizzling out
-
Is there Expressjs like framework for java
Javalin (https://javalin.io) is strongly inspired by Express and Koa, so you should feel right at home:
-
There is no magic in Spring, I wrote my own (very simplified) framework from scratch to show it
If you want to do a proper comparison between the two, I would be happy to help with code examples from Javalin's side. I could even host it on https://javalin.io as a "Comparison to Jooby" blog post.
What are some alternatives?
nanohttpd - Tiny, easily embeddable HTTP server in Java.
ktor - Framework for quickly creating connected applications in Kotlin with minimal effort
WildFly - WildFly Application Server
Spring Boot - Spring Boot
Apache Tomcat - Apache Tomcat
Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM
Apache TomEE - Apache TomEE
Quarkus - Quarkus: Supersonic Subatomic Java.
open-liberty - Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
http4k - The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.
android-http-server - A complete zero-dependency implementation of a web server and a servlet container in Java with a sample Android application.
Jooby - The modular web framework for Java and Kotlin