Structure of a single bounded context

前端 未结 3 929
野的像风
野的像风 2020-12-18 20:58

Does bounded context span over all application layers (domain, application, presentation & infrastructure) or just domain model? For example should i use the following s

3条回答
  •  感动是毒
    2020-12-18 21:38

    Both are valid approaches. I tend to favour the first option, because it allows better modularity and quite clear boundaries for high level BC. The second option is the 'standard' way of doing this, it favours let's say a more technical layering, while the first option literally favours a more domain driven layering.

    Choose the one you feel more comfortable with.

提交回复
热议问题