Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 562 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 562 Bytes

Setup Kafka

Create Topics

docker compose exec -it kafka kafka-topics.sh --bootstrap-server localhost:9092 --create --topic logistic

Consumer Groups

docker compose exec -it kafka kafka-console-consumer.sh --bootstrap-server localhost:9092 --group logistic --topic logistic --from-beginning

Consumer

docker compose exec -it consumer php artisan kafka:consume logistic --group=logistics

Producer

docker compose exec -it consumer php artisan kafka:producer 1007:Hei 1008:World --topic=logistic