Does Kafka python API support stream processing?

user3126637 picture user3126637 · Aug 19, 2018 · Viewed 12.5k times · Source

I have used Kafka Streams in Java. I could not find similar API in python. Do Apache Kafka support stream processing in python?

Answer

OneCricketeer picture OneCricketeer · Aug 19, 2018

Kafka Streams is only available as a JVM library, but there are at least two Python implementations of it

In theory, you could try playing with Jython or Py4j to support it the JVM implementation, but otherwise you're stuck with consumer/producer or invoking the KSQL REST interface.

Outside of those options, you can also try Apache Beam, Flink or Spark, but they each require an external cluster scheduler to scale out.