kinesis icon indicating copy to clipboard operation
kinesis copied to clipboard

Right way to close a Kinesis stream

Open itamarwe opened this issue 8 years ago • 6 comments

Hi, What is the right way to close/terminate a Kinesis stream?

I would like a Kinesis stream to stop consuming any resources. I'm using only the readable part of the stream, and I tried to pause and destroy it, remove all listeners etc but I still see my process consuming much more resources than before I initialize the Kinesis stream.

Thanks.

itamarwe avatar Nov 20 '16 13:11 itamarwe

Hmmm, interesting. Does it continue to happen if you do: myStream.pause = true?

mhart avatar Nov 20 '16 14:11 mhart

(sorry, that should be myStream.paused = true)

mhart avatar Nov 20 '16 14:11 mhart

It stops consuming the stream, but still consumes CPU.

On Nov 20, 2016, at 16:56, Michael Hart [email protected] wrote:

(sorry, that should be myStream.paused = true)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

itamarwe avatar Nov 20 '16 16:11 itamarwe

What's the right way to close the stream then?

itamarwe avatar Nov 20 '16 19:11 itamarwe

Itamar, I tried using DeleteStream and was unsuccessful. I documented my method and failure in #28

chodyo avatar Apr 17 '18 00:04 chodyo

@chody-h this is about closing the stream resource, not deleting the stream

mhart avatar Apr 17 '18 01:04 mhart