We are building a service based on Kinesis / DynamoDB streams and we have the following question about the behavior of the checkpoints.
We have a worker that starts with the following configuration withInitialPositionInStream (InitialPositionInStream.LATEST)
and the name of the KCL application is always the same.
What we have observed by turning the worker off and on again is that it does not start to consume from the end of the stream, since we have a lag metric and we see that when the worker is turned on the consumption lag is hours, when we expect it to be less of 1 second since they are messages that we produce at the moment.
- Is this an expected behavior?
- Are we misinterpreting how the
LATEST
works?
Thank you very much.