You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to retrieve current lease's hash range key in the initialize lifecycle method of KCL consumer?
The only way I could find is through injecting LeaseCoordinator dependency in the ShardRecordProcessor implementation. This ends up creating a circular dependency during dependency injection.
I have a use case where I'm pushing data to Kinesis streams and partitioning my data deterministically.
I'm reading the data using KCL library.
In my use case, I have metadata stored in a Datastore partitioned over range of hash keys for Kinesis Shards.
I want to selectively load the metadata for a specific shard using the shard's hash range key during initialize function of a Shard consumer.
Is it possible to retrieve current lease's hash range key in the
initialize
lifecycle method of KCL consumer?The only way I could find is through injecting
LeaseCoordinator
dependency in theShardRecordProcessor
implementation. This ends up creating a circular dependency during dependency injection.LeaseCoordinator
<-Schedulor
ConfigBuilder
<-ShardRecordFactory
<-ShardRecordProcessor
<-LeaseCoordinator
.The text was updated successfully, but these errors were encountered: