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

Identifying anemic domains

Microservices that do not have a sufficiently mature business layer to solve their own tasks are examples of software built on an anemic domain.

The identification of an anemic domain can be done by making a few simple observations:

  • The microservice cannot perform the tasks itself with only the data received
  • The microservice needs to fetch data in more than one endpoint to perform a task
  • The microservice does not have a self-sufficient entity model
  • The microservice waits for the completion of a task in another microservice to follow up what you need to do
  • The microservice needs to share resources with other external microservices; these resources can be cached to the sample database

If the microservice being developed is one of those items, then it can be a weak area. If a microservice has two or more characteristics of those listed, then it is definitely an anemic domain.

Anemic domains are very harmful to the microservices ecosystem, because they have a tendency to be multiplied in order to correct the technical debt generated by the deficiency in the composition of their respective domains.

主站蜘蛛池模板: 阿克苏市| 达州市| 靖江市| 吴堡县| 宜兴市| 石阡县| 塘沽区| 惠安县| 固阳县| 广平县| 卓资县| 井研县| 四子王旗| 彝良县| 依安县| 凉城县| 南投县| 沁源县| 竹北市| 泰和县| 济源市| 柘城县| 南开区| 北宁市| 津南区| 兴和县| 赣榆县| 靖西县| 东山县| 祁连县| 同仁县| 九龙坡区| 霸州市| 荃湾区| 饶河县| 辽源市| 宁化县| 五家渠市| 荣昌县| 同心县| 淄博市|