Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7358

Alternative Partitioner to Support "Always Round-Robin" Selection


    • Type: Wish
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients
    • Labels:


      In my organisation, we have been using kafka as the basic publish-subscribe messaging system provider. Our goal is the send event-based (secure, encrypted) SQL messages reliably, and process them accordingly. For us, the message keys represent some metadata which we use to either ignore messages (if a loopback to the sender), or log some information. We have the following use case for messaging:

      1) A Database transaction event takes place

      2) The event is captured and messaged across 10 data centres all around the world.

      3) A group of consumers (for each data centre with a unique consumer-group ID) are will process messages from their respective partitions. 1 consumer per partition.

      Under the circumstances, we only need a guarantee that same message won't be sent to multiple partitions. In other words, 1 partition will never be sought by multiple consumers.

      Using DefaultPartitioner, we can achieve this only with NULL keys. But since we need keys for metadata, we cannot maintain "Round-robin" selection of partitions because a key hash will determine which partition to choose. We need to have round-robin style selection regardless of key type (NULL or not-NULL)


          Issue Links



              • Assignee:
                manmedia@gmail.com M. Manna
                manmedia@gmail.com M. Manna
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Due: