官术网_书友最值得收藏!

Replace

Updates to microservices are normal, but sometimes these updates may compromise the health of a microservice. New features can cause the microservice to absorb many responsibilities that go beyond the original domain idea.

A common mistake is adding new features and invalidating old ones without removing them completely. Some features of the development processes become more clear when a new microservice is created that is intended to replace an old one.

This process may seem more time consuming, however, it is very healthy for the application as a whole. Rethink whether old features still make sense, remove any zombie code which has no more relevance to the business, becoming consumers of resources and aggregators of complexity.

The replace process, when it comes to microservices, is very simple, as shown in the following diagram:

The concept applied to the replacement process is very simple. With control as the balancing layer, which will direct 90% of the requests for the old microservice and 10% for the new microservice, it is possible to monitor and analyze how mature a new application is and if no feature has been forgotten or has unwanted side effects.

This approach reduces the error effect on production, and provides real data on the new application. As the new microservice gains maturity and confidence in the availability of features, a higher percentage of requests is released for the new microservice. Importantly, the microservices, due to the size of the small business scope and low coupling, are easily replaceable. A total replacement service is a natural process when it comes to evolution, both in business and as a stack.

主站蜘蛛池模板: 星座| 黑山县| 玉山县| 隆德县| 垦利县| 奇台县| 武汉市| 库车县| 福海县| 蚌埠市| 略阳县| 万宁市| 德惠市| 陈巴尔虎旗| 宜良县| 三江| 梁平县| 台安县| 和田县| 山东省| 永顺县| 霍山县| 镇沅| 南川市| 抚顺县| 溧水县| 武安市| 河西区| 康马县| 江源县| 南城县| 卢龙县| 巩义市| 青冈县| 荥经县| 武隆县| 铜梁县| 六安市| 隆回县| 手机| 达孜县|