0

If I set a trigger for lambda function from SQS that already has messages in it, will the existing messages trigger the lambda function? or that only new arriving messages will trigger it? If the old messages won't trigger the lambda function automatically, is there a manual way that will still trigger the lambda function to read the old messages?

Edit: After testing that, the answer is YES. The existing messages do trigger the lambda function.

2
  • 2
    Give it a try, let us know what you discover! Commented Aug 4, 2022 at 5:50
  • Any messages already in the queue that haven't been read by some other process will automatically be sent to the Lambda function. Commented Aug 4, 2022 at 14:04

2 Answers 2

1

After testing that, the answer is YES. The existing messages do trigger the lambda function.

Sign up to request clarification or add additional context in comments.

Comments

0

When the trigger is set up, the lambda function not only gets activated by new messages but also gets caught up on the backlog in the queue.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.