Wednesday, October 08, 2025

The Digital Press

All the Bits Fit to Print

Ruby Web Development Artificial Intelligence Urban Planning Astronomy

Java-HTTP: Fast, Simple Server Using Virtual Threads Hits 120K RPS

Lightweight Java HTTP server using virtual threads for high performance

From Hacker News Original Article Hacker News Discussion

java-http is a lightweight, zero-dependency Java HTTP server library that uses virtual threads to deliver high performance with simple, maintainable synchronous-style code.

Why it matters: It eliminates complex dependencies, reducing security risks and easing development with straightforward, native-JDK-style HTTP handling.

Performance highlight: Achieves around 120,000 requests per second, ensuring the HTTP server won't be the bottleneck in applications.

The big picture: Adopts Java 21's virtual threads to simplify asynchronous code, improving maintainability and speeding up test suites dramatically.

Commenters say: Users appreciate the minimalism, ease of use, and performance gains, while some note it may not yet replace more established servers for complex needs.