Artur, It is possible to do this, but the second approach you mentioned is much more common. Normally people don't want to expose their Kafka cluster publicly, so having an intermediary can be a good way to, e.g., add a layer where you can easily filter out bad traffic. You may be able to use some of Kafka's newer security features to get enough security for your use case, however. Additionally, you'll likely need to tweak some of the default settings as they are good defaults for use within a data center, but not over the link your Android app will probably have.
-Ewen On Fri, Nov 4, 2016 at 11:40 PM, <lido.fl...@web.de> wrote: > Hi folks, > > is it possible / does it make sense to use an Android app as a "Producing > client" for Apache Kafka? > > Let's say my Android App need to capture and analyse reaction time data. > Goal is to collect all data and show the average reaction time in real-time > in the App. > > The alternative is having an app server of some kind as an intermediary > that accepts messages from the android app and posts them to Kafka, rather > than having the app be a Kafka Producer on its own. > > > > See: http://stackoverflow.com/questions/40043532/how-to-use- > android-app-as-a-producing-client-for-kafka > > > > Best Regards, > > Artur > -- Thanks, Ewen