Gumdrop

gumdrop

Gumdrop is a multipurpose Java networking framework built on a reactor model: a small pool of SelectorLoop threads multiplex many connections with nginx-like, callback-driven handlers rather than thread-per-connection blocking I/O or future pipelines. Whether you are building a server, an outbound client, or a peer that listens and dials on the same Gumdrop instance, you use the same endpoints, handlers, TLS stack, and parsing style so each role is equally natural to develop. Transparent TLS is built in, with implementations for HTTP, SMTP, IMAP, POP3, FTP, DNS, MQTT, SOCKS, and more. Gumdrop 3 requires Java 25 (LTS) or newer so its in-tree TLS can rely on the JDK's post-quantum cryptography: hybrid ML-KEM key exchange and ML-DSA certificate validation are supported throughout (see TLS & DTLS).

If you know Netty, Gumdrop solves a similar problem (extensible modern networking for custom protocols) with a different programming model: ProtocolHandler and protocol-specific staged handlers run as synchronous callbacks on selector threads, familiar to nginx or C event-loop programmers, rather than channel pipelines and Future completion. It uses standard ByteBuffer throughout, pure Java in-tree TLS and QUIC with secure defaults, push parsers and streaming codecs for constant memory, many wire protocols plus OpenTelemetry on one stack, and a scalable servlet container when you need it. Throughput is comparable to or better than Netty's; see benchmarks.

This page is the Gumdrop documentation home, also served as the example web application for the servlet container. Start with Design & architecture for the reactor model, servers, listeners, endpoints, handlers, and TLS; the guides below cover every major feature.

Feature documentation

About the Logo

The Gumdrop logo is a gumdrop torus, generated using POV-Ray. A gumdrop torus is a mathematical construct—the logo is such a torus viewed from an angle that makes it resemble the letter G. Images were created using POV-Ray and/or GIMP and are copyright 2005 Chris Burdess.

Getting started

Pick a protocol or topic from the list above, or browse the example applications and tests in the source tree. Contributions and new features are welcome.

Questions about Gumdrop can be sent to Chris Burdess.

Gumdrop