I have written a Kinesis consumer and I am trying to run it locally. There are two parts that I do not understand about the working of kinesis: