AWS trigger lambda function when message is present in SQS queue

I use the AWS Lambda function to process messages in a queue that work fine. But I need to execute this Lambda function when messages are available or added to the SQS queue.

Is it possible to run the Lambda function based on the SQS queue. Please suggest one way to achieve this.

+4
source share
1 answer

Calling Lambda functions from SQS queues is not directly supported. Here you can see the list of available triggers: http://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html

Possible solutions:

  • SQS Kinesis DynamoDB. Lambda .
  • SNS SQS. SNS SQS Lambda.

, :

  • CloudWatch, Lambda N (, ).
  • CloudWatch, ApproximateNumberOfMessagesVisible SQS. SNS, , , Lambda.
+14

Source: https://habr.com/ru/post/1663713/


All Articles