If the AWS Lambda feature has event sources from multiple Kinesis streams, will there be a batch of incoming records from a single Kinesis stream or mix?

The name may be a little confusing. I will try my best to make this clearer.

Suppose I have an AWS Lambda function that has two different streams Kinesis A and B as input event sources.

So, for below, since the KinesisEvent instance contains a batch of records, will the package contain records from a single stream, or does it essentially contain records from both streams A and B?

public class ProcessKinesisEvents {
    public void recordHandler(KinesisEvent event, Context context) {
        ...
    }
}
+4
source share
1 answer

AWS Kinesis AWS Lambda - , CreateEventSourceMapping EventSourceArn FunctionName, :

POST /2015-03-31/event-source-mappings/ HTTP/1.1
Content-type: application/json

{
    "BatchSize": number,
    "Enabled": boolean,
    "EventSourceArn": "string",
    "FunctionName": "string",
    "StartingPosition": "string"
}

, , , , . , -, .

+2

Source: https://habr.com/ru/post/1606034/


All Articles