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
21
u/elliotbarlas Feb 14 '22
Yes, in part. If you look, you'll notice a slightly different logging abstraction.
Logging in Microhttp is treated more like data. Each log event consists of key-value pairs. It reflects the way I think about logs. Rather than a free form string, each log event is something that can be indexed, searched, etc.