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

  • Java EE 8 and Angular
  • Prashant Padmanabhan
  • 234字
  • 2021-07-02 19:22:37

Smaller code base

When working on any code base, its size is a detrimental factor in forming an understanding of the application. Given the principle of having a separate team that owns the microservice and its build, test, and deploy cycles, it is logical to maintain a separate repository (Git or any VCS). A separate code repository allows for a smaller code base, leading to reduced code complexity, and also avoids merge conflicts, which pester larger code bases with multiple collaborators.

The small code base brings with it compelling advantages for the developers. Imagine having chosen a tech stack only to realize that it isn't the right stack to use. Sounds familiar, right? Mistakes will be made, and our only hope is to use an architecture that allows us to dispose of the code and redo it using another choice. If your code base is small, then a rewrite is no longer a distant dream. It's easier to squeeze performance out of this code base than try to speed up a larger bundle of code modules put together.

The term micro in microservices doesn't mean less lines of code. Lines of code is a very misleading measure and cannot be relied upon to keep your services small. As discussed in the coding practices and single responsibility sections that follow, there are a few design guidelines that should be followed to keep your services small.

主站蜘蛛池模板: 房产| 垫江县| 建昌县| 农安县| 山东| 日喀则市| 丹寨县| 延长县| 天津市| 杭州市| 吉林市| 启东市| 贵定县| 抚远县| 琼中| 犍为县| 姚安县| 长治县| 依兰县| 马鞍山市| 靖安县| 醴陵市| 东光县| 新干县| 枣庄市| 孟州市| 同仁县| 大悟县| 蓝田县| 松潘县| 闽侯县| 上犹县| 洱源县| 汉川市| 巴楚县| 汨罗市| 鄂伦春自治旗| 丹寨县| 鹰潭市| 巴里| 穆棱市|