Hey Upendra, On Mon, 1 Feb 2021 at 05:32, Upendra Yadav <[email protected]> wrote:
> Hi, > > I want to know the polling behaviour when a consumer is assigned with > multiple topic-partitions. > > 1. In a single poll will it get messages from multiple topic-partitions. Or > in one poll only one topic-partition's messages will come? If you have either subscribed/assigned strategy, you will get all available messages under the specific TopicPartions. Please read about subscribe/assign on Consumer API doc. > > 2. How does it choose topic-partitions for next polling? Any default > class/strategy assigned for this, that we can reconfigure? Same as above. Please read the consumer API as they have the full explanation on consumer behaviour on partition assignment, rebalancing, and polling behaviours. > > Thanks > Upendra >
