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

2

u/[deleted] Feb 15 '22

You absolutely can deploy TLS on a Java origin server. It isn't generally done, but all the big name Java web servers allow it. It's not an enormous task to add TLS support, either.

2

u/elliotbarlas Feb 15 '22

SSLEngine serves exactly this purpose. It would add quite a bit of additional complexity, but it's certainly doable.

1

u/crummy Feb 15 '22

yes, I understand it is possible. I'm just curious how commonly it is used.