- Hands-On Docker for Microservices with Python
- Jaime Buelta
- 200字
- 2021-06-24 12:35:47
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:
- Copy the code into its own microservice and deploy it.
- The old calling system is using the old embedded code.
- Migrate a call and check that the system is working fine.
- Iterate until all old calls are migrated to the new system.
- Delete the divided code from the old system.
If the code is not so cleanly structured, we will need to change it first.
- EJB 3.1從入門到精通
- INSTANT PhpStorm Starter
- Learning Karaf Cellar
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- WordPress 5 Complete
- 網(wǎng)絡(luò)的琴弦:玩轉(zhuǎn)IP看監(jiān)控
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)
- 物聯(lián)網(wǎng)之霧:基于霧計(jì)算的智能硬件快速反應(yīng)與安全控制
- 搶占下一個(gè)智能風(fēng)口:移動(dòng)物聯(lián)網(wǎng)
- 5G技術(shù)與標(biāo)準(zhǔn)
- Getting Started with nopCommerce
- Dart Cookbook
- 基于IPv6的家居物聯(lián)網(wǎng)開發(fā)與應(yīng)用技術(shù)
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營(yíng)與維護(hù):運(yùn)營(yíng)商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- Cisco無(wú)線局域網(wǎng)配置基礎(chǔ)