- 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.
- 一步一步學Spring Boot 2:微服務項目實戰
- Building a Game with Unity and Blender
- 算法訓練營:入門篇(全彩版)
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Oracle數據庫從入門到運維實戰
- 人人都懂設計模式:從生活中領悟設計模式(Python實現)
- Unity Game Development Scripting
- OpenStack Orchestration
- Getting Started with React Native
- R數據科學實戰:工具詳解與案例分析
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- 小型編譯器設計實踐
- Python 3 Object:oriented Programming(Second Edition)
- Practical GIS
- Visual Basic 開發從入門到精通