- Building Serverless Microservices in Python
- Richard Takashi Freeman
- 265字
- 2021-06-24 15:57:31
Decomposition pattern by bounded context
There are three steps to apply the decomposition pattern by bounded context: first, identify the domain, which is what an organization does. Then identify the subdomain, which is to split intertwined models into logically-separated subdomains according to their actual functionality. Finally, find the bounded context to mark off where the meaning of every term used by the domain model is well understood. Bounded context does not necessarily fall within only a single subdomain. The three steps are as follows:

The benefits of this pattern are as follows:
- Use of Ubiquitous Language where you work with domain experts, which helps with wider communication.
- Teams own, deploy, and maintain services, giving them flexibility and a deeper understanding within their bounded context. This is good because services within it are most likely to talk to each other.
- The domain is understood by the team with a representative domain expert. There is an interface that abstracts away of a lot of the implementation details for other teams.
There are a few drawbacks as well:
- It needs domain expertise.
- It is iterative and needs to be continuous integration (CI) to be in place.
- Overly complex for a simple domain, dependent on Ubiquitous Language and domain expert.
- If a polyglot approach was used, it's possible no one knows the tech stack any more. Luckily, microservices should be smaller and simpler, so these can be rewritten.
More details can be found in the following books:
- Building-microservices, Sam Newman (2015)
- Domain-Driven Design: Tackling Complexity in the Heart of Software, Eric Evans (2003)
- Implementing Domain-Driven Design, Vaughn Vernon (2013)
推薦閱讀
- 腫瘤免疫治療嚴(yán)重不良反應(yīng)案例分析
- 皮膚病中藥內(nèi)用制劑
- 健康快車的故事
- 眼睛健康,自己查(第二版)
- 狡猾的細(xì)胞:癌癥的進(jìn)化故事與治愈之道
- 醫(yī)院醫(yī)療質(zhì)量標(biāo)準(zhǔn)化管理手冊
- 產(chǎn)前超聲檢查規(guī)范解讀
- 乳腺、甲狀腺介入性超聲學(xué)
- 中醫(yī)臨床技能實(shí)訓(xùn)教程
- 臨床麻醉難點(diǎn)解析(第2版)
- 麻醉安全與質(zhì)量管理
- 走進(jìn)孤獨(dú)的世界:為家長專業(yè)解讀自閉癥
- 新型冠狀病毒感染臨床用藥手冊
- 你好,我是阿斯伯格員工
- 癌癥療愈錄:腫瘤門診敘事紀(jì)實(shí)二