adyliu / jafka

a fast and simple distributed publish-subscribe messaging system (mq)

Home Page:https://github.com/adyliu/jafka/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Looking for sample example on Message Partition and distribution

vishponnuru opened this issue · comments

Hello,

I am in process of evaluating the Apache Kafka/JafKa message broker, looking for simple message distribution and partition example. The goal is to distribute messages equally across all the brokers in a cluster.

Thank you,
Vish

Hello,vishponnuru

If you don't specify the broker-partition by configuration(partitioner.class), the producer will choose a broker-partition randomly which means the messages will be distributed equally to all the brokers.