Skip to content

Random generated group id #906

@JBertaux

Description

@JBertaux

Hello,

I am here to propose a new feature because I didn't find an easy solution to do it. I would like to have the Kafka group id be generated by Spring Kafka when I don't provide one, like for the annotation @StreamListener in Spring Cloud Stream. It would be a nice feature when we have multiple instances of the same application and we want that each applications receive the same Kafka message.
In the following example, I would like that Spring Kafka generates for me the group id :

    @KafkaListener(topics = "my-topic")
    public void handleMessage(String message){
        System.out.println(message);
    }

Do you think this is a good idea ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions