Hey Vinicius,
On Tue, 26 May 2020 at 10:27, Vinicius Scheidegger < vinicius.scheideg...@gmail.com> wrote: > In a scenario with multiple independent producers (imagine ephemeral > dockers, that do not know the state of each other), what should be the > approach for the messages being sent to be equally distributed over a topic > partition? > > From what I understood the partition election is always on the Producer. Is > this understanding correct? > > If that's the case, how should one achieve an equally distributed load > balancing (round robin) over the partitions in a scenario with multiple > producers? > > Thank you, > > Vinicius Scheidegger Have you checked RoundRobinPartitioner ? Also, you can always specify which partition you are writing to, so you can control the partitioning in your way. Regards, Regards, > >