Identifying Bounded Context

十年热恋 提交于 2019-12-25 09:12:41

问题


everytime i think i understand how to recognize bounded context's i realize the waters are still murky. so here goes...

i am developing a customer portal that contains the following features: Customers, Users, Announcements, Feedback, Documents, and Reimbursements. We are just putting a pretty UI over reimbursement approvals from another system, so this one is easy to see it's another BC we integrate with. Now with the others, I'm not sure how to group these together. Would all these belong to a single BC 'Portal'? Or maybe there are seperate 'Management', 'Communications', 'Documents' BC's??

Any thoughts would be greatly appreciated!


回答1:


In the "problem space" it is usually driven by language. Start by looking for situations where you find yourself having to give a context to explanations, or discussions around the concepts. For example, if you have something that has different meaning depending on what context you are talking about. A good example is "ticket" - this could mean something different if your context is selling tickets to a show compared to a service-desk context where a ticket is an issue somebody has raised.

This is often something that evolves as you go, as you find concepts becoming too large, or you find them taking on responsibilities they didn't used to have. If you find two different groups of people have slightly different meanings they attach to things it is another good sign that you may need separate contexts. Another good sign is when you start adding boolean flags to control things, as well as nullable fields.

Customers, Users, Announcements, Feedback, Documents, and Reimbursements. Would all these belong to a single BC 'Portal'? Or maybe there are seperate 'Management', 'Communications', 'Documents' BC's??

Are there any concepts within these that are different depending on which "thing" you are talking about? It might be that you have many sub domains each with a single bounded context where the mode remains consistent

I'd probably start with a single context per sub domain, then split them out as the concepts emerge.



来源:https://stackoverflow.com/questions/38917977/identifying-bounded-context

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