I am curious to see if this will mean a shift to more efficient languages (Go or Rust) for Lambda services, as usually people default to JS
AWS Lambda pricing now per ms
31–40 of 291 posts
Re: AWS Lambda pricing now per ms
#32Earlier quoted context omitted.
It's nice to see that AWS is using their economy of scale to reduce their own costs, and passing that on to the consumer.
I don't think they are doing it to be nice to consumers. I think they are doing it to cost less than competitors.
You get customers by being nice to them. Being nice to customers means competitive pricing, high quality support, good documentation, easy integration, etc. It's all driving towards the same goal.
Re: AWS Lambda pricing now per ms
#33Earlier quoted context omitted.
If it takes 60 seconds, that's 600 steps. 601 steps isn't that much of a saving. It matters close to 0.
If a process takes that long, lambda would be a poor architectural choice.
You might only drop videos in once a week, but when you do you want to run some code against them. There are plenty of distributed workflow reasons to run long running Lambdas infrequently rather than spinning up and down an EC2 instance.
Re: AWS Lambda pricing now per ms
#34I am curious to see if this will mean a shift to more efficient languages (Go or Rust) for Lambda services, as usually people default to JS
I've got bad experiences with go startup (i.e., cold runs). They're much more expensive than I would have expected. If node can indeed run in 40ms (as https://news.ycombinator.com/item?id=25267211 says), then I'm surely going back to JS.
Edit: Bizarre. Seems like Go on lambda does actually have slower cold start than JS or Python. I wonder if its just that the binary is likely larger than the equivalent JS source code? https://levelup.gitconnected.com/aws-lambda-cold-start-langu...
Re: AWS Lambda pricing now per ms
#35I am curious to see if this will mean a shift to more efficient languages (Go or Rust) for Lambda services, as usually people default to JS
I've got bad experiences with go startup (i.e., cold runs). They're much more expensive than I would have expected. If node can indeed run in 40ms (as https://news.ycombinator.com/item?id=25267211 says), then I'm surely going back to JS.
Re: AWS Lambda pricing now per ms
#36I am curious to see if this will mean a shift to more efficient languages (Go or Rust) for Lambda services, as usually people default to JS
On the other hand I heard legends about under 10ms Rust Lambdas.
Re: AWS Lambda pricing now per ms
#3766$ for running a AWS Lambda with 128 for a year seems very expensive.
Re: AWS Lambda pricing now per ms
#38I am impressed that computation is billed by the ms nowadays. I'm an ignorant in AWS Lambda but how do you know if their ms measurement is accurate? Is there any way to verify this?
It's still measured by wall clock time - not CPU time. I'd love to see them bill for actual CPU time.
Most workloads ALSO hold memory (which is a key constraint) over the entire wall clock time, and the delays and impacts/costs of hibernating out the memory and then bringing it back so you can just be charged for CPU time may not make sense.
Re: AWS Lambda pricing now per ms
#39Anyone know why there's a hard limit of 15 minutes for Lambda (and 9 minutes for Google Cloud Functions)? Still seems really weird to me.
Re: AWS Lambda pricing now per ms
#40Anyone know why there's a hard limit of 15 minutes for Lambda (and 9 minutes for Google Cloud Functions)? Still seems really weird to me.
Lambda isn't designed for long running processes. Keeping the runtime limit lower makes it a lot easier to operate the underlying metal because you can move thing around every N minutes where N is the runtime limit. For long-running processes, something like Fargate might be a better fit in the AWS side of things.