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 comments

1

u/lambdacats Feb 15 '22

How do you reason about privacy and security when running plaintext transfers in the AWS cloud?

4

u/elliotbarlas Feb 15 '22

A VPC is just that, a private network. Running almost any workload in the cloud requires a level of trust in the provider. I also trust AWS with encryption keys (KMS), objects (S3), and in countless other domains.

1

u/lambdacats Feb 15 '22

Ah ok, well if you give Amazon the keys it barely matters anyways. At this level of trust the projects I've worked on could never be allowed in the cloud. I was wondering about ways to make it more secure / require less trust in the provider.

2

u/[deleted] Feb 15 '22

If you really want to go hardcore with your zero trust, run the Microhttp instances in containers with sidecar proxy doing the heavy lifting of mTls.

1

u/lambdacats Feb 15 '22

Yes please and thank you.