progress on kafka

This commit is contained in:
lennyaiko
2025-04-10 13:59:04 +01:00
parent 51480d664a
commit 34cba74580
6 changed files with 102 additions and 50 deletions
+15 -1
View File
@@ -1,6 +1,20 @@
from app import create_app
from app.integrations import KafkaIntegration
app = create_app()
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)
kafka = KafkaIntegration()
if kafka.is_kafka_running():
print("Kafka is running")
else:
print("Kafka is not running")
exit(1)
try:
message = kafka.receive_messages(
topic=
)
app.run(host="0.0.0.0", port=5000, debug=True)