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

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.
主站蜘蛛池模板: 聂拉木县| 高阳县| 平阴县| 灵台县| 离岛区| 民乐县| 江阴市| 鄂州市| 富平县| 堆龙德庆县| 高平市| 锡林浩特市| 奉化市| 密山市| 托里县| 武乡县| 尼木县| 赞皇县| 曲周县| 阿坝| 郑州市| 陇川县| 温州市| 西乌珠穆沁旗| 观塘区| 依安县| 巴中市| 台南市| 绥芬河市| 库尔勒市| 财经| 鄂托克旗| 醴陵市| 林口县| 汝州市| 乐安县| 镇康县| 上虞市| 晴隆县| 巴南区| 湘潭县|