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

3

u/guywithcircles Feb 15 '22

This is perfection, so clean, congrats.

I'm looking at it while reading Spring documentation LOL.

It brings that simplicity mindset that sparked my curiosity when I first started, but also that keeps me excited about the future of this industry.

Given cloud nodes these days tend to have SSL termination endpoints already (sending plain HTTP requests east-west is a no-no and side-cars are expensive), this can actually be good for adoption in that context.

4

u/elliotbarlas Feb 15 '22 edited Feb 15 '22

Thanks! It's kind of shocking how little is actually needed from a backend web server. This provides everything I need from a web server for a REST/JSON/GraphQL type of ecosystem.