jiengup commented on code in PR #3927:
URL: https://github.com/apache/iggy/pull/3927#discussion_r3894994556


##########
examples/python/basic/producer.py:
##########
@@ -106,7 +106,11 @@ async def produce_messages(client: IggyClient):
             await client.send_messages(
                 stream=STREAM_NAME,
                 topic=TOPIC_NAME,
-                partitioning=PARTITION_ID,
+                # A fixed strategy sends the whole batch to this partition.
+                # For topics with multiple partitions, Partitioning.balanced()
+                # distributes batches round-robin, while
+                # Partitioning.messages_key(key) keeps equal keys on the same 
partition.
+                partitioning=Partitioning.partition_id(PARTITION_ID),

Review Comment:
   And keep the comment here as a hint.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to