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

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.

主站蜘蛛池模板: 仁怀市| 东乡县| 武清区| 若羌县| 克什克腾旗| 德钦县| 长武县| 伊宁县| 措美县| 柏乡县| 南靖县| 大化| 喀喇沁旗| 清新县| 乐平市| 黎城县| 寻甸| 施甸县| 沁源县| 年辖:市辖区| 崇文区| 绥宁县| 牡丹江市| 天水市| 德化县| 苏尼特左旗| 汤阴县| 双流县| 泊头市| 商丘市| 东兴市| 武城县| 石狮市| 陵川县| 伊吾县| 运城市| 万全县| 元谋县| 读书| SHOW| 承德县|