aws java sdk - Is there a way to programmatically get the maximum authorized number of shards for an Amazon Kinesis stream? -
by default kinesis stream authorized have @ 10 shards, possible increase limit. possible retrieve limit stream programmatically? wasn't able find method in official aws java sdk.
no, there doesn't seem api call that. in case, have contact aws support , approved limit increase, means value not change often.
if need access limit number dynamically, might consider storing in database somewhere. or, might listen , react exception produced when try scale greater allowed limit.
note if wondering scaling purposes: open shards count toward limit - can scale 5 10 shards, , during scale, original 5 closed become parent shards, mean have 15 shards on account 24 hours until parent shards expire. works fine.
Comments
Post a Comment