Find out who starts the invocation
How a Lambda event source mapping polls SQS instead of receiving a direct invocation, and how visibility timeouts and partial batch responses determine which messages are retried.
With a direct trigger, the service that produces the event stores and manages the trigger and pushes the event to Lambda. For example, Amazon S3 can invoke a function directly when an object is created or deleted. Even if you set up the trigger in the Lambda console, the trigger is managed by S3.
With an event source mapping, Lambda owns the resource that makes the connection. Its pollers actively read from a queue or stream and invoke the function with a batch of records. For SQS, that means the queue holds messages for Lambda to fetch rather than calling the function itself.
Next up: Sort the statements on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.