You can see the full source here

The Lamp


Approach 1 - Crazy Spike Ideas

  • NodeMCU registers itself in the Poorman’s Service Discovery(PSD).
  • Orchestrator contacts all the nodes which are registered

Poorman’s Service Discovery(PSD)

  • CGI server which stores the ip and updatedAt in an sqlite db

Architecture

PSD Sequence Diagram Orchestrator Sequence Diagram


Approach 2 - Redis for the rescue

  • Redis pub/sub for communicating with NodeMCU

Architecture

Lamp Architecture