Version 7 of Kafka allowed to send messages to multiple topics within one request. I assume I can do samething in version 8, am I correct? Does my code piece look correct? List<KeyedMessage<String, String>> topicsMsgsList = new ArrayList(); KeyedMessage<String, String> data1 = new KeyedMessage<String, String>(topic1, msg); KeyedMessage<String, String> data2 = new KeyedMessage<String, String>(topic2, msg); topicsMsgsList.add(data1); topicsMsgsList.add(data2); producer.send( topicsMsgsList );
Re: Send multiple messages to multiple topics in one request
Jun On Tue, Jun 4, 2013 at 12:36 AM, Vadim Keylis <[EMAIL PROTECTED]> wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext