I have a Lambda which is triggered by a message arriving on a SQS queue. I want to do some processing in the Lambda then forward a message to another SQS queue for further processing by another Lambda. It appears I can do this in two different ways:
- In the AWS Console Lambda Designer, user the "Add Destination" feature define a SQS queue as a destination
- Write node.js code to send a message to SQS from within my Lambda
What is the preferred/correct/recommended way to do it? What are the advantages and disadvantages of each?