fs2-aws icon indicating copy to clipboard operation
fs2-aws copied to clipboard

Support for multistream processing

Open stevebakh opened this issue 2 years ago • 1 comments

KCL 2 supports multi-stream processing. Developers can configure a list of streams, and the KCL uses a single lease table. Is there any appetite to support this?

https://docs.aws.amazon.com/streams/latest/dev/shared-throughput-kcl-consumers.html#shared-throughput-kcl-multistream

stevebakh avatar Nov 07 '22 14:11 stevebakh

Hi Steven. Well, you can potentially do this. there are 2 factory methods for kinesis fs2 steams

The default one is most easy to use, you pass all predefined required clients, and you are ready to stream. However, the ConfigBuilder is hidden from you, and you cannot provide the multi-steam config as the library user. The second one was created mostly because we needed to test our implementation, and at the time we started this library, there were scarce resources for mocking kinesis SDK, especially to mimic such cases as shard ends, etc. So you can potentially use the second factory method and make your customization. However, we need to spend more time figuring out how to make it more user-friendly.

semenodm avatar Nov 07 '22 15:11 semenodm

@stevebakh hi Steve, here is new proposal on how to build kinesis streaming #1030

semenodm avatar May 23 '23 19:05 semenodm

Awesome, thanks Dmytro, and apologies for the radio silence! Will take a closer look at the new solution - we're currently just creating two consumers, each with their own lease table. Looking forward to seeing how we can integrate the above.

stevebakh avatar Jun 15 '23 23:06 stevebakh