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

The divide approach

If the system is well structured, maybe some parts of it can be cleanly split into its own system, maintaining the same code.

In this case, creating a new service is more an exercise of copy-pasting and wrapping it around with the minimal amount of code to allow it to be executed independently and to interoperate with other systems, in other words, to structure its API around HTTP requests to have a standard interface.

If this approach can be used, it means that the code was already quite structured, which is fantastic news.

The systems that are called to this part will also have to be adapted to make the call, not to internal code, but through HTTP calls. The good part is that this can be done in a few steps:

  1. Copy the code into its own microservice and deploy it.
  2. The old calling system is using the old embedded code.
  3. Migrate a call and check that the system is working fine.
  4. Iterate until all old calls are migrated to the new system.
  5. Delete the divided code from the old system.

If the code is not so cleanly structured, we will need to change it first.

主站蜘蛛池模板: 洛川县| 宁远县| 襄垣县| 宜昌市| 泾源县| 开化县| 喀喇沁旗| 光山县| 龙州县| 德阳市| 揭东县| 镇赉县| 阿荣旗| 元谋县| 南岸区| 凉城县| 西充县| 缙云县| 灌阳县| 封开县| 任丘市| 苍山县| 图片| 竹山县| 简阳市| 呼图壁县| 青浦区| 永修县| 竹溪县| 乐安县| 江口县| 兴仁县| 溆浦县| 万载县| 松潘县| 会昌县| 泗洪县| 横峰县| 伊金霍洛旗| 克山县| 阜康市|