Skip to content

Can Spring Kafka @KafkaListener support multiple consume #2114

@xzhan

Description

@xzhan

Background
we have two separate Kafka clusters with different endpoint, but same topic prefix
cluster1: kafka-01.com topic topic-kafka01
cluster2: kafka-02.com topic topic-kafka02

but from consumer side it only deploy one pool which must connect both clusters

Current Behavior
we should write two @KafkaListener with config two different kafka endpoin on DefaultKafkaConsumerFactory.

We Wanted
can one listener support multiple consume

@garyrussell @artembilan

I am not sure whether we can or not . or we say whether we have this kind of ability , if no have , or we can't implement it , any suggestion

appreciate you can reply and comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions