- 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)
推薦閱讀
- MR臨床手冊(cè)
- 角膜塑形鏡驗(yàn)配技術(shù)基礎(chǔ)篇
- 圖解針灸經(jīng)外奇穴速查手冊(cè)
- 中華口腔醫(yī)學(xué)會(huì)團(tuán)體標(biāo)準(zhǔn)(2017—2022年)
- 乳腺癌綜合診治規(guī)范化手冊(cè)
- 甲狀腺疾病的核醫(yī)學(xué)診斷與治療
- 臨床醫(yī)學(xué)專(zhuān)業(yè)綜合改革的探索
- Practical PowerShell Security and Compliance Center
- 生命的探問(wèn):弗蘭克爾談生命的意義與價(jià)值
- 骨骼肌損傷和重建的機(jī)制研究
- 特殊醫(yī)學(xué)用途配方食品臨床應(yīng)用
- 感染科專(zhuān)科醫(yī)師臨床思維
- 紫外線(xiàn)皮膚科實(shí)戰(zhàn)口袋書(shū)
- 常見(jiàn)惡性腫瘤治療原則與實(shí)施方案
- 出生缺陷與遺傳性疾病的檢驗(yàn)診斷