You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a project that reads some configs from a yaml file and some secrets from env. once bootstrap is finished, it would connect to a grpc service called manager and receive some configs called parameters from it. the parameters would be loaded to each module struct and they use it. now i want to support a model where the manager can call a grpc method from it and update the config on the fly with 0 downtime. (currently, we have to shut down, update configs in manager's database, start the service again, and then the manager sends new configs.), can we use viper to replace it with our current config module and support on-the-fly update of config while different modules are using config everywhere in their struct locally? how?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i have a project that reads some configs from a yaml file and some secrets from env. once bootstrap is finished, it would connect to a grpc service called manager and receive some configs called parameters from it. the parameters would be loaded to each module struct and they use it. now i want to support a model where the manager can call a grpc method from it and update the config on the fly with 0 downtime. (currently, we have to shut down, update configs in manager's database, start the service again, and then the manager sends new configs.), can we use viper to replace it with our current config module and support on-the-fly update of config while different modules are using config everywhere in their struct locally? how?
Beta Was this translation helpful? Give feedback.
All reactions