News for hackers. Stuff that matters.
Re:AWS Lambda vs. EC2 Latency (API Gateway is very slow) by x_foo_x on Tuesday October 11, 2016 @08:18PM (#12689545)
Is your 'Bare EC2' over SSL? I've used Apex Ping as well (btw it runs on Lambda), and it seems they open a new connection on each ping.

Getting 15 ms latency on a brand new TLS connection is nearly impossible over the internet. If you actually check the latency breakdown on your Ping, you'll see the TLS handshake is dominating the API Gateway -> EC2 request.

I'm all for this type of analysis, but too often it isn't apples to apples.

Re:AWS Lambda vs. EC2 Latency (API Gateway is very slow) by jotto on Tuesday October 18, 2016 @03:58PM (#12738100)
You're right, and I agree it isn't apples to apples. I am still looking for ways to break the 150ms TLS handshake barrier (let me know if you have)

My intention was merely to point out the difference between bare/raw HTTP on ec2 vs API Gateway (which is only HTTPS).

But this comparison is in fact almost useless because the world is moving to HTTPS everywhere.

Re:AWS Lambda vs. EC2 Latency (API Gateway is very slow) by jotto on Tuesday October 18, 2016 @06:01PM (#12739131)
(almost instead of completely useless) because there's still a ~50ms Lambda penalty
Re:AWS Lambda vs. EC2 Latency (API Gateway is very slow) by jotto on Monday October 10, 2016 @12:29PM (#12678088)
This was in response to TJ Holowaychuk's blog post: "Blueprints for up" https://medium.com/@tjholowaychuk/blueprints-for-up-1-5f8197... (running express/connect as a child process of Lambda)

and curiosity as to how far Lambda is from being used for anything latency sensitive - but it turns out Lambda isn't the slow part - it's API Gateway.