pnxtech / hydra

A light-weight library for building distributed applications such as microservices
https://www.hydramicroservice.com
MIT License
645 stars 54 forks source link

broadcast 'reconfigure' event when putConfig #122

Closed khoinguyen closed 6 years ago

khoinguyen commented 7 years ago

Broadcast the UMF message to service which match the first part of config label. This allow matching service to have a chance to capture the config change and do reconfigure itself.

khoinguyen commented 7 years ago

Thank you @emadum, I fixed it to use the short format

khoinguyen commented 7 years ago

@cjus After the pull request merged, and hydra-cli apply use it. I will test and release the following plugin

https://github.com/khoinguyen/hydra-reconfigurable-plugin

It will capture and emit the event to give service, all plugins a chance to reconfigure itself with the correct label.

cjus commented 6 years ago

@khoinguyen closing this for now. We're rethinking how configurations should be supported in the future.