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

ASF GitHub Bot commented on KAFKA-3333:
---------------------------------------

mmanna-sapfgl commented on pull request #6771: KAFKA-3333: Adds 
RoundRobinPartitioner with tests
URL: https://github.com/apache/kafka/pull/6771
 
 
   Adds a new partitioner "RoundRobinPartitioner" for users to use. This is to 
be used when records are expected to be written to partitions in a "Round 
Robin" fashion regardless of a record key.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Alternative Partitioner to Support "Always Round-Robin" partitioning
> --------------------------------------------------------------------
>
>                 Key: KAFKA-3333
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3333
>             Project: Kafka
>          Issue Type: New Feature
>          Components: clients
>            Reporter: Stephen Powis
>            Assignee: M. Manna
>            Priority: Major
>              Labels: needs-kip
>             Fix For: 2.3.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> ** Please Look into KAFKA-7358 for the official description **
>  
> 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
(v7.6.3#76005)

Reply via email to