我是Kafka的新手,我对消费者有疑问,我很困惑......
如果我有一个主题在哪里注册所有数据,但是,有多个消费者只对所涉及的数据感兴趣。像这样的东西:
Common Topic: Consumer 1 Consumer 2
JSONForConsumer1 Mine!!! Idle
JSONForConsumer2 Idle Mine!!!
JSONForConsumer3 Idle Idle
JSONForConsumer1 Mine!!! Idle
...
现在,我所拥有的(但如果可能,我想删除)是:
Common Topic: Consumer 1 Consumer 2
JSONForConsumer1 Is it mine? Yes!!! Is it mine? No...
JSONForConsumer2 Is it mine? No... Is it mine? Yes!!!
JSONForConsumer3 Is it mine? No... Is it mine? No...
JSONForConsumer1 Is it mine? Yes!!! Is it mine? No...
...
那么,是否有可能(不为每个消费者创建主题)每个消费者只处理数据本身?
提前谢谢!!!