Yes. As long as we use same partitioner and have same number of partitions,
messages with same key will go to same partition.

On Thu, Mar 29, 2018 at 3:11 PM, Victor L <vlyamt...@gmail.com> wrote:

> I am looking for best method to keep consumption of messages in the same
> order as client produced them, one thing i am looking at is using of
> message key to select partition:
> If a valid partition number is specified that partition will be used when
> sending the record. If no partition is specified but a key is present a
> partition will be chosen using a hash of the key.
> Does that mean the same key for messages to be placed into the same
> partition in order produced?
> Thank you,
>

Reply via email to