I'm working with a Kafka Consumer using KAFKAJS. I have a requirement to know all the partitions assigned to a specific consumer.
For example, let's say Topic 1 has 5 partitions. And there are 2 consumers with the same clientId. So, one will be assigned 3 topics and the other 2. I want each consumer to know the partitions assigned.