Bounded Context, Subdomains and Ubiquitous language

岁酱吖の 提交于 2019-12-23 09:14:58

问题


a) With BCs containing two or more subdomains there's a possibility of concepts overlapping and even worse, the same concept ( used by several of these subdomains ) may be interpreted/understood differently by each subdomain.

Regardless, if BC does contain numerous subdomains, should it provide several Ubiquitous languages, one for each subdomain, or should all subdomains share the same Ubiquitous language?

b) I assume when a single subdomain spans several BCs, each of these BCs should define its very own Ubiquitous language?

thanks


回答1:


a) Although each domain and sub-domain may have its own language, the UL specifically targets the BC. A BC models the domain and barrows as much as possible from the already established domain language. It is called ubiquitous because it is used ubiquitously by the engineers and the domain experts, which unfortunately often cannot be said for the domain language itself.

B) Each BC should have its own UL.

When the BC models more than one (sub)domain with overlapping concepts it would be wise to consider splitting that BC. A shared kernel could be used to deduplicate the overlap that is equal in concept in both (sub)domains.



来源:https://stackoverflow.com/questions/17050251/bounded-context-subdomains-and-ubiquitous-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!