ccoverstreet / Jablko

Smart Home Interface powered by Go.
MIT License
1 stars 0 forks source link

Cleaning up code related to services #105

Closed ccoverstreet closed 3 years ago

ccoverstreet commented 3 years ago

Need to evaluate if the current structure of services is sustainable. A key design goal is to eliminate coupling between JMODs. There should be NO DIRECT CONNECTION betweens JMODs. A solution needs to be found for allowing JMODs to pass information to other JMODs. The services/sendMessage represents a way for modules to be registered as a client to for requests sent to a certain tag. Maybe creating a MQTT-style version of this would make the system more extendable. Right now, the messaging example is the easiest to implement in this system. Another example could be a MQTT topic for handling chatbot responses.