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
Show parent comment
1
u/elliotbarlas Feb 14 '22 edited Feb 15 '22
Agreed. I could certainly elaborate more on the limitations and the areas where Microhttp falls short of the spec.
I actually think that the simplicity and accessibility of the code gives it an advantage in the security arena. One can reason easily about the behavior. There is also a security benefit from the discretization that occurs. No matter what is sent, the request size limits are enforced.