Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why isn't SQS an event source for lambda?

AWS Lambda functions have a bunch of event sources but SQS ain't one.

Why is that? I would have thought it was a good fit.

like image 456
Sam Sippe Avatar asked Sep 18 '26 08:09

Sam Sippe


2 Answers

On 28 JUN 2018 AWS Lambda Adds Amazon Simple Queue Service to Supported Event Sources.

like image 99
chenrui Avatar answered Sep 19 '26 21:09

chenrui


To some extent; yes I do agree with your view point.

But If you really think of difference between SQS and SNS is that (as John rightly pointed out) SQS is supposed to make things asynchronus... It is like a queue which can be consumed when needed. Queue to be consumed whenever suppose Agent is available. SQS is to maintain workflows which can have lots of lag between different activities. For close to realtime operations SNS/Kinesis are better solutions.

If you want Lambda to be invoked; I think better architecture would be to send message to SNS and let Lambda get invoked.

like image 33
Deepak Singhal Avatar answered Sep 19 '26 21:09

Deepak Singhal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!