当前位置:网站首页>"Configuration" is a double-edged sword, it will take you to understand various configuration methods
"Configuration" is a double-edged sword, it will take you to understand various configuration methods
2022-08-05 01:38:00 【Yi Xiaojun】
What is configuration
Many people can't tell the difference between configuration and configuration management, but they are completely different concepts.
Configuration management: It is a series of measures to control and standardize software products and their development process and life cycle through technical or administrative means.Its goal is to record the evolution process of software products and ensure that software developers can obtain accurate product configuration information at all stages of the software life cycle.
Configuration: Refers to configurable variables that are independent of the program, but have an effect on the program.That is to say, the same code will produce different results under different configurations.
From the above definition, you can see that configuration and configuration management are fundamentally different: configuration management serves the software development process, while configuration serves the program itself.
As a programmer, you often have to face different operating environments during development: development environment, test environment, production environment, intranet environment, extranet environment, etc.Different environments generally have different related configurations, such as data source configuration, log file configuration, and some basic configurations during software running.
In addition, you will also encounter some business and logical configurations.For example, different billing logic is adopted for different regions, and the billing logic needs to be adjusted at any time according to the needs of these regions.
If we hard-code all this information in the code, the result is that the code needs to be modified every time the environment is different or the business logic is adjusted.If the code is modified one day, it needs a complete test, so the cost of the change will be huge.
As a result, we tend to address these issues through "configurations".
However, the "configuration" itself is very particular.At what stage to configure and what means to use for configuration will directly affect the effect of continuous delivery.
Then, I will talk to you about the various configuration methods in detail.
build-time configuration
Taking Maven as an example, profiles are required to achieve build portability across multiple environments.A profile is an optional set of configurations that can be used to set or override configuration defaults.Build portability can be achieved by activating different profiles in different environments.We can look at a simple
边栏推荐
猜你喜欢
pytorch的使用:卷积神经网络模块
JVM类加载简介
PCIe 核配置
linux(centOs7)部署mysql(8.0.20)数据库
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
习题:选择结构(一)
JWT简单介绍
(17) 51 MCU - AD/DA conversion
If capturable=False, state_steps should not be CUDA tensors
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
随机推荐
ExcelPatternTool: Excel table-database mutual import tool
Is DDOS attack really unsolvable?Do not!
GCC:头文件和库文件的路径
C# const readonly static 关键字区别
1349. 参加考试的最大学生数 状态压缩
A new technical director, who calls DDD a senior, is convinced
Method Overriding and Object Class
深度学习训练前快速批量修改数据集中的图片名
SAP ERP和ORACLE ERP的区别是哪些?
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?
居民用水问题
Jin Jiu Yin Shi Interview and Job-hopping Season; Are You Ready?
汇编语言之源程序
主库预警日志报错ORA-00270
JVM类加载简介
[Word] #() error occurs after Word formula is exported to PDF
day14--postman interface test
pytorch的使用:使用神经网络进行气温预测
ORA-01105 ORA-03175