powered by
This function sends message to a particular name through a producer
rkafka.send(producer, topicName, ip, message)
Doesn't return a value
Producer through which messages are to be sent Required:Mandatory Type:String
Topic to which messages are to be sent. If topicName doesn't exist, new topic is created Required:Mandatory Type:String
ip on which producer is running Required:Mandatory Type:String
message to be sent Required:Mandatory Type:String
Shruti Gupta
if (FALSE) { producer1=rkafka.createProducer("127.0.0.1:9092") rkafka.send(producer1,"test","127.0.0.1:9092","Testing") }
Run the code above in your browser using DataLab