Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't trigger lambda's on SQS FIFO

I am trying to trigger lambda execution to execute an item on a FIFO queue. Other than polling, what options do we have to accomplish that? We just learned that we cannot directly trigger a lambda execution from a FIFO queue, which is only supported from the standard queue at this time. I also learned that we cannot subscribe an SNS topic to a FIFO queue – which is only supported on the standard queue as well.

Has anybody found a work around for this yet until Amazon releases an update?

like image 731
845614720 Avatar asked Sep 07 '25 16:09

845614720


1 Answers

Your only option here is to poll the queue at certain intervals.

You can create a CloudWatch event trigger that invokes a lambda function (lets say every 10 minutes) which polls the queue and does the processing.

Update

This is now possible. SQS FIFO queues can now be specified as an event source to your Lambda Function.

https://aws.amazon.com/blogs/compute/new-for-aws-lambda-sqs-fifo-as-an-event-source/

like image 117
Asdfg Avatar answered Sep 11 '25 09:09

Asdfg