RAHUL KUMAR DHAKAR
RAHUL KUMAR DHAKAR

Reputation: 11

Is it possible to trigger two AWS lambda function via a single SQS Message

As per my existing solution I have two lambda function which gets triggered by the different SQS message and create a folder structure in S3.

Now, I have the requirement where I need to use the single SQS message to trigger both the lambda function.

Is it possible to trigger multiple lambda function via a single SQS message if yes then can you please explain the process and how efficient it would be?

If is there any other approach I can follow please let me know.

Thanks!

Upvotes: 1

Views: 604

Answers (1)

Marcin
Marcin

Reputation: 238737

No, you can't do that. The best way is to create fan out setup with SNS + two SQS queues.

Otherwise, you have to develop other solution, e.g. one lambda gets triggered by sqs, and then invokes the second one passing the message as input.

Upvotes: 3

Related Questions