- 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.
- C語言程序設(shè)計實(shí)踐教程(第2版)
- Python 3.7網(wǎng)絡(luò)爬蟲快速入門
- C#程序設(shè)計實(shí)訓(xùn)指導(dǎo)書
- Getting Started with ResearchKit
- 區(qū)塊鏈架構(gòu)與實(shí)現(xiàn):Cosmos詳解
- Learning SQLite for iOS
- Python機(jī)器學(xué)習(xí)算法與實(shí)戰(zhàn)
- 深度學(xué)習(xí):Java語言實(shí)現(xiàn)
- Node.js:來一打 C++ 擴(kuò)展
- Unity 2018 Shaders and Effects Cookbook
- 編程可以很簡單
- Android嵌入式系統(tǒng)程序開發(fā)(基于Cortex-A8)
- 大話代碼架構(gòu):項(xiàng)目實(shí)戰(zhàn)版
- 虛擬現(xiàn)實(shí):引領(lǐng)未來的人機(jī)交互革命
- Java網(wǎng)絡(luò)編程實(shí)用精解