<@U078Y59KC3B> In the documentation for <routing m...
# ask-ai
s
@RunLLM In the documentation for routing modes, it says "Please note that round-robin is not done per individual message but rather it's set to the same boundary of batching delay, to ensure batching is effective. While if a key is specified on the message, the partitioned producer will hash the key and assign message to a particular partition. This is the default mode.". Can you help me understand what this means?
r
This means that in Pulsar's default round-robin routing mode, messages without a key are not assigned to partitions one-by-one in strict rotation. Instead, all messages collected during a batching interval are sent to the same partition, and only after the batch is sent does the producer switch to the next partition. This batching-aware approach improves throughput by maximizing batch size. If a message has a key, the key is hashed and always routed to the same partition, regardless of batching or round-robin settings. See Pulsar routing modes documentation for details. Would you like a step-by-step example or more technical detail? Sources: - Pulsar routing modes documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.