Is the following polling for value the correct way to get a message for each change in value of a key in the Context?
[{"id":"f029180a.bf5918","type":"inject","z":"38af556d.c263fa","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":100,"wires":[["18f9bc44.0dcef4"]]},{"id":"d724e195.5623e","type":"inject","z":"38af556d.c263fa","name":"","topic":"","payload":"false","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":140,"wires":[["18f9bc44.0dcef4"]]},{"id":"18f9bc44.0dcef4","type":"change","z":"38af556d.c263fa","name":"","rules":[{"t":"set","p":"flag1","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":120,"wires":[[]]},{"id":"e1e43f40.63f9","type":"inject","z":"38af556d.c263fa","name":"","topic":"","payload":"flag1","payloadType":"global","repeat":"0.1","crontab":"","once":true,"onceDelay":0.1,"x":150,"y":220,"wires":[["9c2615d4.4a33a8"]]},{"id":"9c2615d4.4a33a8","type":"rbe","z":"38af556d.c263fa","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":310,"y":220,"wires":[["95bdf790.0c09c8"]]},{"id":"95bdf790.0c09c8","type":"debug","z":"38af556d.c263fa","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":220,"wires":[]}]
How expensive is it in terms of load (with an interval of 0.1 sec and with a dozen of flows monitoring the same value)?
Or is there a better practice?