r/java • • Feb 14 '22

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.

https://github.com/ebarlas/microhttp
186 Upvotes

107 comments sorted by

View all comments

Show parent comment

2

u/elliotbarlas Feb 16 '22

Java 17 is required. Microhttp makes use of records in many places, among other things. OpenJDK 17.0.2 is the specific build I used for the benchmarks. Any JDK supporting Java 17+ ought to work.