Reputation: 871
I have one requirement where we have to push data into an SQS queue and a lambda job will process the data as when it is pushed to SQS.
As per documentation on the AWS blog, as of now there isn't any straightforward way to do it. How can I do it?
Upvotes: 0
Views: 683
Reputation: 21
There now seems to be a way to trigger a lambda based on SQS queue message arrival:
AWS Lambda Adds Amazon Simple Queue Service to Supported Event Sources
There are some things to consider, like you cannot use a FIFO SQS queue.
Upvotes: 2
Reputation: 53783
You can't really use long polling anyway as lambda will probably timeout before that.
You could schedule your lambda to check periodically if you have a message in your queue.
Upvotes: 1