Open jurriaan opened 8 years ago
I'm trying to use this library in Elixir and while experimenting with the produce_async and produce_sync functions I found out that
produce_async
produce_sync
Enum.map(1..10000, fn _ -> :ekaf.produce_sync("partitioning", "test") end)
did randomly distribute the messages while
Enum.map(1..10000, fn _ -> :ekaf.produce_async("partitioning", "test") end)
does not (all messages seem to end up in the same partition).
Am I missing some configuration? Or is this expected behaviour?
I fixed this by using strict round robin strategy instead of the default (which I thought should distribute messages randomly)
I'm trying to use this library in Elixir and while experimenting with the
produce_async
andproduce_sync
functions I found out thatdid randomly distribute the messages while
does not (all messages seem to end up in the same partition).
Am I missing some configuration? Or is this expected behaviour?