6 ms·
Lambda was designed to be functions that run in response to an event. An item being put on an SQS queue is an event. The clock ticking over to the next second
by jedberg 10y ago
Lambda was designed to be functions that run in response to an event. An item being put on an SQS queue is an event. The clock ticking over to the next second is an event. There is no reason why a lambda should not be triggered by these events.
- mulmen 10y agoRight but SQS is a pull model so it doesn't generate events. You can use SNS events to trigger a Lambda and tell it that something was added to an SQS queue or S3 or Dynamo or whatever.