I have following use case
- I have kinesis stream having user data.
- I want to read kinesis stream based on user action.
- Filter records based on user input, keep filtering for some time period, let say 5 minutes.
- Keep returning these filtered batches to user for 5 minutes.
- After timeout stop reading kinesis
Question: Is there a way of reading kinesis on demand, without any lag using KCL or any other library. Ley say i can have KCL jvm apps setup which is not reading currently, whenever it gets user action, just start reading. Similarly stop reading after some timeout or further user action.
I can write a logic which can do that but would like to know if there is anything built in KCL.