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

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.

主站蜘蛛池模板: 盖州市| 台北县| 吕梁市| 富顺县| 大城县| 吴川市| 简阳市| 惠来县| 额敏县| 东乌珠穆沁旗| 贡嘎县| 山东| 松桃| 威宁| 六盘水市| 开远市| 凤冈县| 咸宁市| 涡阳县| 彰武县| 富平县| 吉安市| 商丘市| 曲阜市| 曲阜市| 宁晋县| 玛沁县| 铜鼓县| 屯门区| 南宁市| 文水县| 获嘉县| 甘肃省| 龙口市| 玛纳斯县| 遂溪县| 馆陶县| 阿克苏市| 唐河县| 灵武市| 卢湾区|