SNS to Lambda vs SNS to SQS to Lambda

后端 未结 5 2163
慢半拍i
慢半拍i 2021-02-01 13:45

I\'m trying to understand whether I need SQS in my workflow if someone can help explain. In my app, when an action is taken, it submits info to SNS topic which invokes LAMBDA to

5条回答
  •  灰色年华
    2021-02-01 14:11

    SQS does not invoke Lambda. SQS cannot invoke anything. People using Lambda with SQS are running Lambda on an event timer, like once a minute, and every time the function runs it polls SQS to see if there is a message to process.

    If you don't need to queue things up and prevent too many Lambda functions from running concurrently then you don't need a queue system like SQS.

提交回复
热议问题