Jetty
ring
Our great sponsors
Jetty | ring | |
---|---|---|
16 | 15 | |
3,750 | 3,706 | |
0.6% | 0.4% | |
9.9 | 8.4 | |
1 day ago | about 1 month ago | |
Java | Clojure | |
GNU General Public License v3.0 or later | MIT License |
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
-
Let's write a simple microservice in Clojure
The session logs show that the application loads configurations and establishes a connection with a PostgreSQL database. This involves initializing a HikariCP connection pool and Flyway for database migrations. The logs confirm that the database schema validation and migration checks were successful. The startup of the Jetty HTTP server follows, and the server becomes operational and ready to accept requests on the specified port.
-
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.
ring
-
A History of Clojure (2020) [pdf]
* HTTP: Ring is the de facto way to manage HTTP request (see https://github.com/ring-clojure/ring/wiki/Concepts). Jetty and Aleph are common web servers (and https://github.com/clj-commons/aleph) that implement Ring interface.
- Como desenvolvi um backend web em Clojure
-
what componies uses Clojure, and what componies deceased the use of other languages after additions of Clojure, for example Dropbox decrease the use of python after addition of Go programming language, are there any similar story with Clojure?
https://youtu.be/LcpbBth7FaQ (really cool live coding session with REPL-driven development for a ring web app)
-
I Don’t Like Go’s Default HTTP Handlers
> In the HTTP handlers it makes sense that you don't have return values, because: What would you do with that value exactly?
I think that approach used by clojure's ring shows an elegant way to represent http responses https://github.com/ring-clojure/ring/wiki/Concepts#responses. They are essentially structs with the following fields:
status := number
headers := map of string->string
body := stream | string | seq | inputstream
Request handlers are handed a request struct that is similar. The handler is a function that maps a request to a response (it doesn't actually write to streams itself).
I like this style for an http library for a couple of reasons:
1. HTTP resources can be viewed as functions whose domain is the request, and range is the response. Having the abstraction match that makes for really nice code.
-
what web framework do you use?
While you won't find your Spring here, you will find that many of those web libraries will tend to use or produce Hiccup, return Ring maps or maybe have pipelines built using interceptors. Composing libraries together is usually not that hard, but it does require you to leave the comfort zone of the framework's abstractions to try to understand what is actually happening e.g. when someone makes an HTTP request and something is returned and displayed in the browser.
-
Microhttp is an event-driven, single-threaded, zero-dependency web server with 500 LOC. Benchmarks on EC2 show 100,000+ requests per second and 50,000+ persistent connections.
On that note, are you able to support everything required by the ring spec?
-
is bulding rest apis with clojure a good idea ?
You can check out my example project in Clojure with using Ring.
- Clojure Ring เบื้องต้น
-
Diving into clojure
It uses already mentioned ring api (https://github.com/ring-clojure/ring/wiki).
-
Can someone help me understand ring's async handlers (specifically, with Jetty)
I've tried to pair down to the simplest example which shows the issue, and raised it here as I couldn't see one you'd already created or similar: https://github.com/ring-clojure/ring/issues/436 This is so that I have something to link to/follow from our side, hope you don't mind, and many thanks for the diagnosis!
What are some alternatives?
nanohttpd - Tiny, easily embeddable HTTP server in Java.
usermanager-reitit-integrant-example - A little demo web app in Clojure, using Integrant, Ring, Reitit, Selmer (and a database)
WildFly - WildFly Application Server
ring-netty-adapter - Netty Support for Ring
Apache Tomcat - Apache Tomcat
ketu - A clojure kafka client with core.async integration.
Apache TomEE - Apache TomEE
clojure-polylith-realworld-example-app - Clojure, Polylith and Ring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
open-liberty - Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
clojure - The Clojure programming language
android-http-server - A complete zero-dependency implementation of a web server and a servlet container in Java with a sample Android application.
aleph - Asynchronous streaming communication for Clojure - web server, web client, and raw TCP/UDP