anshvnm opened a new pull request, #13150: URL: https://github.com/apache/kafka/pull/13150
This pull request adds new functions to the Producer.java file in the examples directory to provide more flexibility for clients using Kafka. The `sendToMultipleTopics` method allows clients to send a message to multiple topics in a round-robin fashion. The `sendWithKey` method allows clients to send a message to a specific topic with a key for custom partitioning. The `sendWithTimestamp` method allows clients to send a message to a specific topic with a timestamp for custom time-based event streaming. These new functions will help clients to have more control over the messages they are sending and to improve the functionality of their producer when using the examples in the repository. As a result, clients will be able to better understand and utilize the capabilities of Kafka. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org