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

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.
主站蜘蛛池模板: 淮滨县| 定日县| 平凉市| 永德县| 昆山市| 新安县| 宜章县| 东兴市| 民权县| 长宁县| 南充市| 民权县| 略阳县| 青川县| 上思县| 阜南县| 磐石市| 屏东县| 福贡县| 驻马店市| 招远市| 宁夏| 馆陶县| 广河县| 招远市| 二手房| 垫江县| 纳雍县| 芦溪县| 呼图壁县| 临朐县| 永平县| 安远县| 什邡市| 昂仁县| 扶余县| 剑川县| 沙河市| 临漳县| 交城县| 上虞市|