Messaging unification: investigate kafka
Closed this issue · 3 comments
Terkwood commented
Look into drastically reducing the messaging complexity for this system by leveraging kafka for all service communication:
- Drop MQTT and use a websocket gateway to connect to microcontrollers. See https://tttapa.github.io/ESP8266/Chap14%20-%20WebSocket.html
- Drop Redis pub/sub
- Drop google cloud messaging and leverage the existing
push_redis
endpoint to move data up to the cloud. Retain the authorization layer
Terkwood commented
Kafka system will use a lot of memory when running on raspberry pi
Terkwood commented
Also see #69 - we could leave all messaging alone and add Prometheus to help track historical sensor reports
Terkwood commented
It's too scalable, and a fully developed set of Kafka apps uses a lot of RAM. Stick with mqtt/Redis Streams