Round-robin multiple Kafka topics#299
Conversation
|
Hi @lyradc, I'm a bit concerned about the performance impact of using an atomic. That's why I proposed to use a simple "thread-local" counter in the In practice, this would mean replacing What do you think? |
|
Thank you for the feedback @vruello. I was concerned at lower volume this wouldn't distribute well... However after implementing a local uint in the write fn I observed an even distribution across topics at low volume. |
f15ccd9 to
864b4fa
Compare
|
I made some changes:
@lyradc are you ok with these changes? |
|
Thanks again, yeah that looks good to me. |
Allows the topic parameter to contain multiple topics delimited by comma (,).
This is to satisfy request #281 .
Initial testing shows fairly consistent distribution of logs across topics.
