- Microservice Patterns and Best Practices
- Vinicius Feitosa Pacheco
- 187字
- 2021-06-30 19:02:50
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.
推薦閱讀
- 面向物聯(lián)網(wǎng)的CC2530與傳感器應用開發(fā)
- C++黑客編程揭秘與防范
- SOA用戶指南
- Twilio Cookbook
- 5G承載網(wǎng)網(wǎng)絡規(guī)劃與組網(wǎng)設計
- 社交電商運營策略、技巧與實操
- 重新定義Spring Cloud實戰(zhàn)
- 物聯(lián)網(wǎng)檢驗檢測技術
- Web Application Development with R Using Shiny
- Spring Cloud微服務架構進階
- 射頻通信系統(tǒng)
- 世界互聯(lián)網(wǎng)發(fā)展報告·2019
- 物聯(lián)網(wǎng)之霧:基于霧計算的智能硬件快速反應與安全控制
- 基于性能的保障理論與方法
- 高級網(wǎng)絡技術