How can we create Kafka producer in Android application?

后端 未结 2 1449
南方客
南方客 2020-12-12 05:13

I\'am new to apache kafka and I\'am trying to use it on android studio in order to produce data to my server located on my pc using codes from A simple Kafka Consumer and Pr

2条回答
  •  萌比男神i
    2020-12-12 06:05

    You wouldn't. This would be insecure. You'd send a request to a webservice, and it would send data to Kafka. Anything else would require your Kafka servers to be public with the authentication info in the app, which is basically then open to anyone.

提交回复
热议问题