You are billed by the execution time of the function. So from the millisecond we hand the event over to you until you return a response or timeout.
- Chris - Serverless@AWS
Re:AWS Lambda pricing now per ms
by pistoriusp on Tuesday December 01, 2020 @07:19PM
(#25271827)
Are 15 minute max execution times still the norm?
Re:AWS Lambda pricing now per ms
by rajinikantham on Tuesday December 01, 2020 @08:02PM
(#25272125)
Yes. I didn't see anything about relaxing those limits today in the keynote. Once can hope and dream..
Re:AWS Lambda pricing now per ms
by digianarchist on Wednesday December 02, 2020 @12:02AM
(#25273428)
I saw the news around running container images as artifacts which is welcome. Still the 15 min limit restricts a lot of use cases.
https://aws.amazon.com/blogs/aws/new-for-aws-lambda-containe...
As far as I know, if you run for more than a few seconds Lambda’s cost will _really_ not worth it. One should prefer ECS or Batch.
Re:AWS Lambda pricing now per ms
by digianarchist on Saturday December 05, 2020 @02:07AM
(#25312503)
On Fargate? I agree.
Re:AWS Lambda pricing now per ms
by astuyvenberg on Tuesday December 01, 2020 @12:23PM
(#25267303)
It's still measured by wall clock time - not CPU time. I'd love to see them bill for actual CPU time.
They would be willing to do this probably if you let them evict your entire workload from memory during the period you were not paying for it, and then were able to charge you for CPU time and some additional charge to reload workload into memory from hibernation.
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
by alexeldeib on Tuesday December 01, 2020 @01:31PM
(#25268164)
They could also charge you some rate for CPU seconds + Gb-seconds of memory used? Sort of the ultimately flexible cloud platform. You could apply the same sort of thinking to other resources, but it works best for CPU/memory I think.
Re:AWS Lambda pricing now per ms
by jacques_chester on Tuesday December 01, 2020 @01:41PM
(#25268294)
That would be ideal, as it more closely fits consumption to billing. But potentially harder for end users to reason about. AWS's bills are already notorious.
I'd bet a significant portion of their margins come from this, given Lambda's focus on I/O-bound workloads.
If the profits exist there, then others might eventually find it advantageous to have this metric in the future.
Maybe even accounting for strong and weak nuclear forces (not sarcasm...we are engineering at the quantum level now, soon it will be apart of a business metric. Instead of 'equipment' being servers, it might be the domain-space-time used).
Re:AWS Lambda pricing now per ms
by tylersmith on Tuesday December 01, 2020 @05:03PM
(#25270599)
You pay for more than cpu cycles. Yu are paying for those cycles to occur at a particular wall time and for some segment of memory to be reserved during that time as well.
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?