# Consumer polling and partitions

**URL:** <https://forum.confluent.io/t/consumer-polling-and-partitions/8841>\
**Category:** Java Clients\
**Created:** [9 October 2023 11:13 UTC](https://forum.confluent.io/t/consumer-polling-and-partitions/8841 "2023-10-09T11:13:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/tomas/32/3273_2.png) [@Tomas](https://forum.confluent.io/u/Tomas)\
**Post date:** [9 October 2023 11:13 UTC](https://forum.confluent.io/t/consumer-polling-and-partitions/8841/1 "2023-10-09T11:13:23Z")

</div>

Hi.

I have a question regarding polling from different partitions by a single consumer.

Let’s assume a consumer is assigned to partitions A and B. Partitions A is full of data. For example:

A:   
B: [Y][Y]

Let’s assume the consume will start polling from partition A. When will it switch to partition B?. In other words: will the consumer drain partition A first and only then switch to partition B once partition A is empty?

Thanks in advance for you reply
