Kafka-Producer (Python) creates n-messages per seconds and streams into specified topic. KSQLDB is used to consume streaming data with filtered streams and tables.
Simply pull the repo and run the docker-compose.yaml from root directory.
docker compose up -d
As soon as the Kafka-Producer runs, start the KSQL-CLI
docker exec -it ksqldb-cli ksql http://ksqldb-server:8088
Execute ksql-init.sql to create streams and tables from within ksql-cli
RUN SCRIPT '/tmp/ksql-init.sql';
Example Queries:
SHOW STREAMS;
SELECT * FROM STREAM_EVENT_ALL EMIT CHANGES;