I wouldn't have deemed it impressive by 'load testing' AWS Lambda with 139 requests. Also, a simple Google search would have shown the author that first 1 million requests are free in AWS Lambda, contrary to what he says.
Just a heads up, I think he meant the free tier at load impact. While I love the service, you do end up paying pretty quick to scale up. https://loadimpact.com/pricing As a note, we started using GOAD https://goad.io and Dino http://veldstra.org/2016/02/18/project-dino-load-testing-on-... - for running tests and has been great.
.NET Core Web API on AWS Lambda Performance
11–20 of 22 posts
Re: .NET Core Web API on AWS Lambda Performance
#12Just worth pointing out that Azure (Microsoft's cloud platform) also has a Serverless option in the form of a cloud platform capability called "Azure Functions". So check out the competitor here: https://azure.microsoft.com/en-us/services/functions
Re: .NET Core Web API on AWS Lambda Performance
#13Earlier quoted context omitted.
I don't believe it's 1m... it's 1m depending on the memory configured for the lambda and the total execution time per lambda. If every lambda takes 150ms to run you will only get 500k requests.
It's 1m requests and a compute time space limit > AWS Lambda is now generally available. The AWS Free Tier includes 1 million free requests and up to 3.2 million seconds of compute time per month with AWS Lambda [0] [0]: https://aws.amazon.com/lambda/pricing/
Re: .NET Core Web API on AWS Lambda Performance
#14Earlier quoted context omitted.
I'm using gateway to proxy requests to IIS, Lambdas, and S3/CloudFront. It's not slow at all for me. It's also nice having a single domain and no longer dealing with CORS.
Interesting - what's your P95/P99 like? I'm seeing ~800ms with a Hello World Lambda called from API Gateway.
Hitting Gateway -> Cloudfront -> S3 (for gzip / caching) it's ~100-200ms.
Hitting Gateway -> ELB -> EC2 -> IIS (.NET Web API) it's ~400-500ms.
Hitting Gateway -> Lambda -> NodeJS it's ~700-800ms.
Still need more time to in production to get more statistics.
Re: .NET Core Web API on AWS Lambda Performance
#15Earlier quoted context omitted.
I don't believe it's 1m... it's 1m depending on the memory configured for the lambda and the total execution time per lambda. If every lambda takes 150ms to run you will only get 500k requests.
It's 1m requests and a compute time space limit > AWS Lambda is now generally available. The AWS Free Tier includes 1 million free requests and up to 3.2 million seconds of compute time per month with AWS Lambda [0] [0]: https://aws.amazon.com/lambda/pricing/
Re: .NET Core Web API on AWS Lambda Performance
#16Earlier quoted context omitted.
I'm using gateway to proxy requests to IIS, Lambdas, and S3/CloudFront. It's not slow at all for me. It's also nice having a single domain and no longer dealing with CORS.
Interesting - what's your P95/P99 like? I'm seeing ~800ms with a Hello World Lambda called from API Gateway.
(I haven't tested this myself, just what I've gleaned from the forums.)
Re: .NET Core Web API on AWS Lambda Performance
#17Earlier quoted context omitted.
Interesting - what's your P95/P99 like? I'm seeing ~800ms with a Hello World Lambda called from API Gateway.
Lambda via API gateway requires a lot of traffic to be fast. From what i've read, it's because of the SSL handshake between the Cloudfront POP (which all API Gateways use automatically) and Lambda. Only when you have a lot of traffic will enough SSL sessions be cached to get a good hit rate. (I haven't tested this myself, just what I've gleaned from the forums.)
That said, I'm excited for the potential of serverless offerings - whether using containers or any other implementation mechanism. I'm building a backend for a native app right now and the initial beta version was using Lambda. The slow responses really made it tough though so a move to GKE and Kubernetes have made response times a lot lower, and it actually scales faster too.
Re: .NET Core Web API on AWS Lambda Performance
#18Earlier quoted context omitted.
Interesting - what's your P95/P99 like? I'm seeing ~800ms with a Hello World Lambda called from API Gateway.
Lambda via API gateway requires a lot of traffic to be fast. From what i've read, it's because of the SSL handshake between the Cloudfront POP (which all API Gateways use automatically) and Lambda. Only when you have a lot of traffic will enough SSL sessions be cached to get a good hit rate. (I haven't tested this myself, just what I've gleaned from the forums.)
Re: .NET Core Web API on AWS Lambda Performance
#19Earlier quoted context omitted.
It's 1m requests and a compute time space limit > AWS Lambda is now generally available. The AWS Free Tier includes 1 million free requests and up to 3.2 million seconds of compute time per month with AWS Lambda [0] [0]: https://aws.amazon.com/lambda/pricing/
Minor nit, it's 1M requests and 400,000GB-seconds of runtime. Running a 128MB instance gets you the 3.2M seconds number, but if you need more memory then that number drops fast. Assuming roughly 1 second per-request you max out at 384MB of memory to stay in the free tier.