Pull Model Event Sources - Serverless Architectures with AWS Lambda

Pull Model Event Sources

Amazon DynamoDB

Invocation Model Pull
Invocation Type Request/Response
Description Lambda will poll a DynamoDB stream multiple times per second and invoke your Lambda function with the batch of updates that have been published to the stream since the last batch. You can configure the batch size of each invocation.
Example Use Cases

Application-centric workflows that should be triggered as changes occur in a DynamoDB table (for example, a new user registered, an order was placed, a friend request was accepted, etc.).

Replication of a DynamoDB table to another region (for disaster recovery) or another service (shipping as logs to an S3 bucket for backup or analysis).

Amazon Kinesis Streams

Invocation Model Pull
Invocation Type Request/Response
Description Lambda will poll a Kinesis stream, once per second for each stream shard, and invoke your Lambda function with the next records in the shard. You can define the batch size for the number of records delivered to your function at a time, as well as the number of Lambda function containers executing concurrently (number of stream shards = number of concurrent function containers).
Example Use Cases

Real-time data processing for big data pipelines.

Real-time alerting/monitoring of streaming log statements or other application events.