I was trying to implement the load balancing for Aws kinesis stream consumers
As per documentation I am trying to implement
spring:
cloud:
stream:
instanceIndex: 1
instanceCount: 3
bindings:
RollUpInboundStream:
group: my-consumer-group
destination: my-kinesis-stream
content-type: application/json
I have 3 containers, I want to bring up new containers(At max 6) if needed and without restarting the existing.
- The instanceIndex starts from 0 or 1.
- If I give the instanceCount as 6 but bring up only three instances, will all the messages are consumed until I bring up new instances.
- In documentation, there is a property called spring.cloud.stream.bindings..consumer.concurrency, Can you help the importance of it.
- For some reasons, if any of the instance goes down, will any of the messages be unconsumed.
Can you please help us