Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger multiple lambda functions

I want to use trigger multiple lambda functions from a single s3 bucket but i'm getting overlap error I in fact found a solution that i need to use SNS for the same. The architecture would be like enter image description here

  • Is there any other solution to it?
  • if not how to implement it using SNS?
like image 959
Ankit Singh Avatar asked Sep 19 '25 19:09

Ankit Singh


1 Answers

Is there any other solution to it?

Probably, but SNS is the correct solution to "fan out" messages to multiple consumers.

if not how to implement it using SNS?

Exactly like in the diagram you posted. You would configure S3 to send new object notifications to an SNS topic, and you would configure each Lambda function to subscribe to the SNS topic.

like image 92
Mark B Avatar answered Sep 21 '25 11:09

Mark B