News for hackers. Stuff that matters.
Re:AWS Lambda pricing now per ms by Dunedan on Tuesday December 01, 2020 @01:35PM (#25268223)
If you want sequential processing of the data in the SQS queue, something which works really well today is to create a state machine in AWS Step Functions which triggers a AWS Lambda function which then pulls data from SQS and processes it. Using a condition in the state machine, this can be done in a loop, so when the AWS Lambda function reaches its timeout, another one gets triggered as long as there is still data in the SQS queue.

If data doesn't have to be processed sequentially an option is to configure the AWS Lambda function to get invoked for new data in the SQS queue [1], so you don't have to care about manually fetching data from SQS at all.

[1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html

Re:AWS Lambda pricing now per ms by staticassertion on Tuesday December 01, 2020 @01:38PM (#25268260)
Yep, but I prefer to care about manually fetching data from SQS. It's a weird system, but due to our data model there are many benefits to processing as many messages in a given lambda as possible.
Re:AWS Lambda pricing now per ms by kondro on Tuesday December 01, 2020 @07:38PM (#25271978)
This might be useful to simplify that model for you :)

https://aws.amazon.com/about-aws/whats-new/2020/11/aws-lambd...

Re:AWS Lambda pricing now per ms by staticassertion on Tuesday December 01, 2020 @09:40PM (#25272691)
Pretty cool, but not quite the model I want.