egg-acm
Application Configuration Management (ACM), formerly known as Taobao's internal configuration center Diamond, is an application configuration center that enables you to centralize the management of application configurations, and accomplish real-time configuration push in a distributed environment. With ACM, you can greatly reduce the workload of configuration management and enhance service capabilities in scenarios such as microservices, DevOps, and big data.
Install
$ npm i egg-acm --save
Usage
// {app_root}/config/plugin.jsexportsacm = enable: true package: 'egg-acm';
Configuration
// {app_root}/config/config.default.jsexportsacm = endpoint: 'acm.aliyun.com' // Available in the ACM console namespace: '**********' // Available in the ACM console accessKey: '**********' // Available in the ACM console secretKey: '**********' // Available in the ACM console requestTimeout: 6000 // Request timeout, 6s by default;
see config/config.default.js for more detail.
Example
you can access acm-client api via app.acm
or ctx.acm
// get configconst content= await appacm;console; // subscriptionappacm; // publish configconst content= await appacm;console; // delete configawait acm;
Questions & Suggestions
Please open an issue here.