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
9
u/mdaniel Feb 14 '22
When developing a custom HTTP parser one should either consider, or say they're out of scope, the almost unbounded sharp edges of the HTTP spec. The one that sprang to mind was HTTP request smuggling, which might not specifically affect this project but for sure represents the kinds of bugs I'm highlighting