1 Answer
- Newest
- Most votes
- Most comments
1
SQS does not have a way to peek messages in the queue. You should not follow this approach. If you want to make sure that each file is processed only once and that even the first function doesn't put the same file name twice into the queue, consider using SQS FIFO queues with deduplication.

Have you looked into AWS Step Functions yet? I think it might solve a lot of your problems regarding chaining Lambda functions together.