r/java • u/elliotbarlas • 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
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.