Eclipse Jetty is a lightweight, scalable Java web server and servlet container. It supports HTTP/3, HTTP/2, HTTP/1, WebSocket, and servlets for deployed or embedded use.
Overview
Eclipse Jetty is a lightweight, highly scalable Java web server and servlet engine. It aims to handle web protocols including HTTP/1, HTTP/2, HTTP/3, and WebSocket with low latency at high volume while remaining approachable for servlet-based applications.
Jetty is a fully asynchronous, component-oriented server. It can run as a traditional distribution for deploying web applications and can also be embedded into other Java programs. Example projects cover standalone webapps, multiple webapp versions, and embedded Jetty and servlet setups.
Documentation is split by audience: an operations guide for installing Jetty as a standalone server to host web applications, a programming guide for using Jetty libraries and customizing deployments, and a contribution guide for project developers. Commercial support is offered through Webtide.
Jetty has seen long production use in varied products and cloud contexts, with integrations for technologies such as OSGi, JMX, JNDI, and JAAS. Open-source components are available under EPL 2 and Apache 2.
Key features
- HTTP/1, HTTP/2, and HTTP/3 support
- WebSocket and servlet container
- Standalone and embedded deployment modes
- Asynchronous server architecture
- Operations and programming documentation
- OSGi and enterprise integration hooks cited
- Example webapp and embedded configurations
- Optional commercial support via Webtide
Use cases
- Hosting Java web applications on a dedicated server
- Embedding an HTTP stack in Java applications
- Servlet and JSP workloads needing modern HTTP
- Low-latency protocol handling at scale
- Customized web application deployment