Introduction to Kafka Stream Processing in Python using Faust

preview_player
Показать описание
Faust is a stream processing library, porting the ideas from Kafka Streams to Python.
This video explains , how to use Kafka (very popular distributed messaging queue) and Faust ( a python based distributed stream processing library) to create a simple stream processing application.

Code:
--------
Start Zookeeper:
------------------------------

Start Broker:
------------------------------

Start Kafka Topic:
------------------------------

Install the required modules:
------------------------------
pip install faust-streaming
pip install kafka-python

Python Code:
------------------------------
import faust

app=faust.App('demo-streaming',broker='localhost:9092')

async def processor(stream):
async for message in stream:
print(f'Received {message}')

To run Fause Application
------------------------------
faust -A main worker -l info

Kafka Console Producer:
-------------------------------

Check this playlist for more Data Engineering related videos:

Apache Kafka form scratch

Snowflake Complete Course from scratch with End-to-End Project with in-depth explanation--

🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY YOUTUBE CHANNEL
Рекомендации по теме
Комментарии
Автор

You really are a knowledge amplifier and I am disappointed that your channel has less views.

adityanjsg
Автор

Hi thank you for your content and explanation, can you please provide docker compose file if you have any to spin up the environment, is there any GitHub repository that I can follow for this code, Thanks in advance

PrakashReddyK
Автор

thanks alot for this classes this code faust -A main worker -l info not running,

omerimam