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

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.
主站蜘蛛池模板: 清原| 吴堡县| 六盘水市| 彩票| 香河县| 逊克县| 大丰市| 拜泉县| 丹阳市| 黑龙江省| 金乡县| 金华市| 司法| 普洱| 剑河县| 兴山县| 临汾市| 汉阴县| 嘉善县| 南川市| 砀山县| 灵丘县| 四川省| 松桃| 大邑县| 志丹县| 台州市| 闸北区| 井研县| 安多县| 太康县| 阿瓦提县| 含山县| 明溪县| 江北区| 曲水县| 宁陕县| 岚皋县| 大兴区| 枣强县| 深水埗区|