AWS Lambda as a stream consumer
AWS Lambda is an event-driven, serverless computing platform that eliminates the need for you to manage servers. It enables you to run custom code for a wide range of applications or backend services, and you’re only charged for the execution time of your code. Lambda also allows you to parallelize the execution of the same function code across multiple simultaneous invocations, each operating independently.
Lambda serves as a common stream consumer for both KDS and DynamoDB Streams. When Lambda functions are configured as stream triggers, the Lambda service regularly polls the respective stream with a predefined, non-configurable frequency. It invokes your function code only when stream events are detected during polling.
Lambda stream triggers provide various configurations and features. For instance, you can set a batch size while specifying how many stream events should accumulate before invoking the Lambda function. This allows you...