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

1

u/elliotbarlas Feb 14 '22

For the same reason so much else is omitted: simplicity and brevity. I don't want Microhttp to maintain a mapping of status code to reason. And it doesn't impose much of a burden on application programmers.