- 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.
推薦閱讀
- 圖像目標(biāo)跟蹤技術(shù)
- 新手學(xué)修手機(jī)
- 數(shù)字圖像處理及應(yīng)用:使用MATLAB分析與實(shí)現(xiàn)
- 愛(ài)上單片機(jī)(第2版)
- RFID重大工程與國(guó)家物聯(lián)網(wǎng)(第4版)
- TD-LTE無(wú)線網(wǎng)絡(luò)規(guī)劃與優(yōu)化實(shí)務(wù)
- Altium Designer 原理圖與PCB設(shè)計(jì)
- 基站主設(shè)備及配套設(shè)備維護(hù)
- 3D顯示技術(shù)、標(biāo)準(zhǔn)與應(yīng)用
- 深入理解邊緣計(jì)算:云、邊、端工作原理與源碼分析
- Simulink與信號(hào)處理
- 電子愛(ài)好者入門
- 電磁兼容原理與技術(shù)
- 通信專業(yè)實(shí)務(wù):傳輸與接入(無(wú)線)
- 掘金5G:掌握數(shù)字經(jīng)濟(jì)時(shí)代生存法則