I have a Kafka topic and a consumer with a consumer group assigned (a must) in a Spring Cloud application. As a requirement, in every application restart I need to start reading all received messages from the beginning. This was supposed to be achieved by the resetOffsets
property, but it is clear from this issue that it currently doesn't work.
I found this workaround used in kafka consumer api, that suggest assigning a new random name to the consumer group in every restart as a way to start reading from the earliest. Is it possible/recommended in Spring Cloud Stream? How could I define a dynamic name to a consumer group?