You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Stephen Powis (JIRA)" <ji...@apache.org> on 2016/03/04 16:04:40 UTC

[jira] [Commented] (KAFKA-3333) Client Partitioner - Round Robin

    [ https://issues.apache.org/jira/browse/KAFKA-3333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15179984#comment-15179984 ] 

Stephen Powis commented on KAFKA-3333:
--------------------------------------

Will link to a github pull request shortly.

> Client Partitioner - Round Robin
> --------------------------------
>
>                 Key: KAFKA-3333
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3333
>             Project: Kafka
>          Issue Type: New Feature
>          Components: clients
>            Reporter: Stephen Powis
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The [DefaultPartitioner|https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/DefaultPartitioner.java] typically distributes using the hash of the keybytes, and falls back to round robin if there is no key.  But there is currently no way to do Round Robin partitioning if you have keys on your messages without writing your own partitioning implementation.
> I think it'd be helpful to have an implementation of straight Round Robin partitioning included with the library.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)