We are using spring kafka to consume messages. We have created receiver for each partition to receive messages. Now we have requirement where we need more than one receivers to consumer message from single partition.
for e.g. Lets suppose we have a Partition 0. Currently we have only one receiver (Receiver 1) that receives messages from this partition. Now I want to add another Receiver (Receiver 2) for the same partition (Partition 0).
So if Producer sends 100 messages to this partition,50 messages should be received by Receiver 1 and remaining 50 messages should be received in Receiver 2. I dont want messages to be duplicated. Both the receiver classes belong to the same group.(I have set props.put("group.id", "unique_group_id") )
Please help me to understand if this scenario is acheivable.