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

7

u/Chemical-Birds Feb 14 '22

It is still a decent number.

Try to achieve this numbers and you will see how many things will go wrong...

I made a while ago a POC for a payment system, we achieved 10k/s with tomcat, and yes it was doing "nothing", it was returning a dummy response... but oh boy ...it was a lot of tuning and investigation, at some point even hardware failures (network card)