- Cloud-Native Applications in Java
- Ajay Mahajan Munish Kumar Gupta Shyam Sundar
- 174字
- 2021-06-24 19:07:20
Microservice identification
The name microservice does not necessarily mean that the service has to be small in size. But it has the following characteristics:
- Single responsibility principle: This is the core design principle of microservices. They should do one business unit of a task and do it completely. If there is low coupling, the services will be easier to modify and deploy or even replace altogether.
- Granular: Microservice granularity is contained within the intersection of a single functional domain, a single data domain and its immediate dependencies, a self-sufficient packaging, and a technology domain.
- Bounded: A service should have access to resources within its bounded context, which is managed by the same team. However, it should not access resources of other modules, such as cache and databases, directly. If a service needs to access other modules it should do so through an internal API or service layer. This helps reduce coupling and promotes agility.
- Independent: Each microservice is developed, tested, and deployed independently, in its own source. It can use third-party or shared libraries.
推薦閱讀
- 元器件易學(xué)通:常用元件分冊
- Photoshop移動UI設(shè)計完全實(shí)例教程
- 愛上單片機(jī)(第2版)
- 彩色電視機(jī)現(xiàn)場維修實(shí)錄
- 數(shù)字電路與系統(tǒng)
- LTE移動通信技術(shù)
- 數(shù)字平板電視機(jī)維修筆記
- Network Programming with Rust
- 液晶顯示器檢測與修理技能速訓(xùn)
- 雷達(dá)數(shù)據(jù)處理及應(yīng)用
- WCDMA無線系統(tǒng)原理及設(shè)備維護(hù)(華為版)
- 多媒體通信技術(shù)與應(yīng)用
- LTE/LTE-Advanced系統(tǒng)架構(gòu)和關(guān)鍵技術(shù)
- 移動通信技術(shù)與應(yīng)用(第2版)
- 空間信號協(xié)同處理理論與技術(shù)