News for hackers. Stuff that matters.
Re:AWS Lambda pricing now per ms by jlouis on Tuesday December 01, 2020 @12:24PM (#25267320)
If it takes 60 seconds, that's 600 steps. 601 steps isn't that much of a saving.

It matters close to 0.

Re:AWS Lambda pricing now per ms by alpha_squared on Tuesday December 01, 2020 @12:30PM (#25267405)
If a process takes that long, lambda would be a poor architectural choice.
Re:AWS Lambda pricing now per ms by Pfhreak on Tuesday December 01, 2020 @12:37PM (#25267481)
Not necessarily. For low frequency workloads with reasonably long step times, Lambda can still make sense. (E.g. When videos appear in this S3 bucket, process them.)

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 by alpha_squared on Tuesday December 01, 2020 @12:49PM (#25267625)
Lambdas are underpowered and often poor choices for compute-heavy workloads. Unless there's an urgency to processing infrequent videos, it might make more sense to backlog messages to the queue and use spot instances for draining the queue and processing videos, especially from a cost perspective. Though I acknowledge that this is a more complex setup.
Re:AWS Lambda pricing now per ms by throwaway894345 on Tuesday December 01, 2020 @01:12PM (#25267918)
I haven’t heard that lambdas are “underpowered” before, but I’m interested to learn more. Could you elaborate just a bit on why they are underpowered?
Re:AWS Lambda pricing now per ms by alpha_squared on Tuesday December 01, 2020 @02:35PM (#25268891)
As was mentioned by qvrjuec in a sibling comment, hardware is limited. I seem to remember CPU speeds listed alongside available memory for AWS Lambdas, but the pricing page seems to just list memory now[0]. At the highest end, you're still limited to ~10.2GB of memory, which is considerably lower than what's available via EC2. And while I have no personal experience with the EC2 finer-grained pricing that was announced[1], it sounds like that approach may be a better approach to the described scenario above. We can nitpick on these architectural details, but my response was largely that there are other architectural alternatives that could be more ideal; especially in response to a comment that seems to dismiss the value of pricing at finer time intervals.

[0] https://aws.amazon.com/lambda/pricing/

[1] https://www.cnbc.com/2017/09/18/aws-starts-charging-for-ec2-...

Re:AWS Lambda pricing now per ms by throwaway894345 on Tuesday December 01, 2020 @04:54PM (#25270489)
> We can nitpick on these architectural details, but my response was largely that there are other architectural alternatives that could be more ideal; especially in response to a comment that seems to dismiss the value of pricing at finer time intervals.

Not trying to nitpick anything; just curious what was meant by "underpowered". Seems like there's still a breadth of compute-intensive use cases that are more appropriate for lambda--e.g., cost is more sensitive than latency and I have too low a volume of requests for a dedicated EC2 instance to make economic sense. This has been where I've spent most of my career, but no doubt there are many use cases where this doesn't hold.

Re:AWS Lambda pricing now per ms by qvrjuec on Tuesday December 01, 2020 @01:40PM (#25268275)
Limitations on hardware one can run a lambda function on and constraints on execution time mean they are "underpowered" compared to other options, like ECS Fargate tasks.
Re:AWS Lambda pricing now per ms by throwaway894345 on Tuesday December 01, 2020 @01:49PM (#25268392)
Does Fargate allow you to run on beefier hardware? I know you can bring your own hardware with vanilla ECS. I’m aware of the execution time constraints (15 minutes), but I thought we were talking about 60s?
Re:AWS Lambda pricing now per ms by lstamour on Tuesday December 01, 2020 @12:46PM (#25267597)
Right but the first thought I had was, couldn’t you fan out and run a lambda for each frame or a group of related frames? (E.g. Batch HLS processing would be really easy!) If so, you’re back to short lambdas again. It’s really the sweet spot for using Lambda after all: lots of big jobs can be broken down into lots of little jobs, etc.
Re:AWS Lambda pricing now per ms by Pfhreak on Tuesday December 01, 2020 @01:38PM (#25268256)
Plausibly. But that might be more effort than just writing the code to ingest a video file (or some other big data blob) in the simplest, most straightforward way possible.
Re:AWS Lambda pricing now per ms by CodeWriter23 on Tuesday December 01, 2020 @02:43PM (#25268993)
If your process takes more than 10 seconds, the extra 100ms charge is pretty much noise.
Re:AWS Lambda pricing now per ms by roland35 on Tuesday December 01, 2020 @01:00PM (#25267788)
Lambda has a 15 minute limit, I'm not sure exactly how it compares to ec2 but for a low duty cycle application it still makes sense! It is also pretty easy to combine a lambda to SNS or SQS
Re:AWS Lambda pricing now per ms by staticassertion on Tuesday December 01, 2020 @12:55PM (#25267719)
My lambdas run for 15 minutes. I feel that they're still a great choice :)
Re:AWS Lambda pricing now per ms by archgoon on Tuesday December 01, 2020 @02:19PM (#25268738)
Huh... that's the limit of lambda functions, are you doing some sort of work in 15 minute chunks?
Re:AWS Lambda pricing now per ms by staticassertion on Tuesday December 01, 2020 @06:10PM (#25271288)
Instead of processing 10 messages off of SQS per lambda we process 10, then start polling for more using the same lambda, and don't stop until the lambda is just about to die.
Re:AWS Lambda pricing now per ms by _rs on Wednesday December 02, 2020 @12:32AM (#25273549)
Forgive me if this is naive, but why not trigger a lambda for each message separately? I think they’ll automatically reuse lambdas instead of spinning down
Re:AWS Lambda pricing now per ms by jlouis on Tuesday December 01, 2020 @12:47PM (#25267611)
I used an extreme to show the point. At 800 ms the savings are also less than closer to 0.
Re:AWS Lambda pricing now per ms by SamBam on Tuesday December 01, 2020 @01:14PM (#25267942)
Yes, but even then it's still a saving, however small, not a loss, so I feel to see this point of this.