The configuration center means that in a distributed scenario, the latest framework configuration files and applications cannot be bound together. You can specify the information of the configuration center, such as the type and address of the configuration center, and pull it from the configuration center when the framework starts Start the corresponding configuration.
Reference repository: dubbo-go-samples/configcenter
dubbogo.yml
In the configuration center nacos
group defaults to dubbo
dataID is the specified id: dubbo-go-samples-configcenter-nacos-server
Write the framework configuration such as the following to start normally.
Config API is the API used by dubbogo 3.0 to manipulate the configuration structure. You can use the Config API provided by the framework to initialize the configuration structure, obtain component instances and use them. An example is as follows, including initialization of dynamic configuration instance, publish configuration, read configuration, and subscribe configuration operations.
Of course, when starting the framework in the form of API, you can start the framework directly in the form of API.
//todo
under development