- Building Microservices with .NET Core 2.0(Second Edition)
- Gaurav Aroraa
- 337字
- 2021-07-02 20:12:59
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 will pose some resistance. A 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 these 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.
- PyTorch自動駕駛視覺感知算法實戰(zhàn)
- 編寫高質(zhì)量代碼:改善Python程序的91個建議
- The HTML and CSS Workshop
- R大數(shù)據(jù)分析實用指南
- Learning DHTMLX Suite UI
- ANSYS Fluent 二次開發(fā)指南
- PHP 7+MySQL 8動態(tài)網(wǎng)站開發(fā)從入門到精通(視頻教學(xué)版)
- C語言開發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- Learning Apache Cassandra
- 軟件測試綜合技術(shù)
- 從零開始學(xué)Android開發(fā)
- C語言程序設(shè)計教程
- Java程序設(shè)計及應(yīng)用開發(fā)
- HTML5+CSS3+jQuery Mobile+Bootstrap開發(fā)APP從入門到精通(視頻教學(xué)版)
- Eclipse開發(fā)(學(xué)習(xí)筆記)