Load Config File Dynamically in Emqttd.
Can I make changes to emq.conf file and anyhow load it without stopping the broker ?
Load Config File Dynamically in Emqttd.
Can I make changes to emq.conf file and anyhow load it without stopping the broker ?
I think the better way to use "gen_server" with ETS table to store/update data periodically (for example every 30 seconds).
you may use erlang:send_after
inside the handle_info
function & read Emqttd config file.
check the answer in this topic What's the best way to do something periodically in Erlang?