I am currently using DynamoDB streams and looking forward to move to Kinesis streams as I want to gain control over the number of records I like to process from the streams.
I have been reading about Kinesis streams and lambda. There are many articles about Kinesis streams and EC2's where multiple consumers and KCL etc..
All I would like to know is, If I go with lambda for Kinesis stream, what is the expected behavior?
- Like Dynamo streams, when Kinesis has records in the streams, lambda gets triggered with the bunch of records in the event?
- Whenever there are records in Kinesis stream, Lambda gets triggered and Lambda can go ahead and read the shards to fetch the records and process further.
I am looking for the second option in the above. I do not want the lambda to be triggered with set of records but I want to control the amount I read.
Could anyone explain how can I gain control of Kinesis streams in Lambda?