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

Integrating monolithic

Whenever a choice is made to move away from the monolithic architecture in favor of the microservice-styled architecture, the time and cost axis of the initiative would pose some resistance. Business evaluation might rule against moving some parts of the monolithic application that do not make a business case for the transition.

It would have been a different scenario if we were developing the application from the beginning. However, this is also the power of microservices in my opinion. A correct evaluation of the entire monolithic architecture can safely identify the monolithic parts to be ported later.

However, to ensure that these isolated parts do not cause a problem to other microservices in future, we must take one safeguard against the risk.

The goal for such parts of the monolithic application is to make them communicate in the same way as that of other microservices. Doing this involves various patterns and you utilize the technology stack in which the monolithic application was developed.

If you use the event-driven pattern, make sure that the monolithic application can publish and consume events, including a detailed modification of the source code to make these actions possible. This process can also be performed by creating an event proxy that publishes and consumes events. The event proxy can then translate these events to the monolithic application in order to keep the changes in the source code to a minimum. Ultimately, the database would remain the same.

If you plan to use the API gateway pattern, be sure that your gateway is able to communicate with the monolithic application. To achieve this, one option is to modify the source code of the application to expose RESTful services that can be consumed easily by the gateway. This can also be achieved by the creation of a separate microservice to expose the monolithic application procedures as REST services. The creation of a separate microservice avoids big changes in the source code. However, it demands the maintenance and deployment of a new component.

主站蜘蛛池模板: 牟定县| 肥城市| 廊坊市| 崇信县| 兴宁市| 金山区| 台江县| 阳高县| 汝阳县| 榆中县| 惠安县| 泽普县| 宣城市| 海丰县| 托里县| 肇源县| 修武县| 揭东县| 咸阳市| 大石桥市| 清丰县| 应城市| 临澧县| 礼泉县| 万源市| 鹤山市| 天门市| 仪征市| 油尖旺区| 丽水市| 安泽县| 石柱| 泸州市| 木里| 宣城市| 玉田县| 黄龙县| 蕲春县| 龙胜| 莒南县| 稷山县|