scripts/peek_topic.py · chapter Replaying the data, file 4 · 24 lines · open in the repository
What it does
Print the first few messages in our Kafka topic, to check the producer works. Run: python3 scripts/peek_topic.py (add —bootstrap localhost:9092 for local)Connections
Uses:src/common/contracts.py, src/common/settings.py
Source
scripts/peek_topic.py