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

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.

主站蜘蛛池模板: 栖霞市| 胶南市| 凉山| 遵义市| 化隆| 苏尼特左旗| 九台市| 侯马市| 彰化县| 梅河口市| 石家庄市| 洱源县| 岢岚县| 尉犁县| 师宗县| 赣榆县| 彭泽县| 沁源县| 杭州市| 临邑县| 色达县| 望江县| 谷城县| 西林县| 太保市| 秀山| 栖霞市| 班戈县| 读书| 科尔| 区。| 公安县| 安庆市| 连江县| 和顺县| 富民县| 红原县| 交城县| 德昌县| 长沙县| 古浪县|