filmov
tv
Introduction to Kafka Stream Processing in Python using Faust

Показать описание
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
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
Комментарии