Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Faust vs Kafka-python

I could not find any answer to this: what is the difference between Faust and kafka-python?
Is there any pros/cons on preferring any one of them?
As I understand it:

  • Kafka is written in Java, and Kafka-python is a Python client to communicate with "Java stream"
  • Faust is a pure "Python stream"

So, if I plan to use only Python then Faust should be better choice and if I want to have wider compatibility (Go, .NET, C/C#, Java, Python) then use Kafka + Kafka-python?

Note: I am new to using Kafka and I am trying to understand the pros/cons of different solutions.

I would highly appreciate any advice!!

like image 955
Pavol Avatar asked Sep 04 '26 21:09

Pavol


1 Answers

As I understand it you use both with Kafka, and both from Python, but with the difference that:

  • Faust is for stream processing (filtering, joining, aggregating, etc)
  • kafka-python (just like confluent-kafka-python also) is a client library providing Consumer, Producer, and Admin APIs for Kafka.

So you could easily use both, for different purposes, from Python.

like image 154
Robin Moffatt Avatar answered Sep 06 '26 11:09

Robin Moffatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!