Structure of a single bounded context

前端 未结 3 936
野的像风
野的像风 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:29

    I think it is not a question about DDD precisely but about an architecture. What kind of coupling between bounded contexts is acceptable/desirable for you.

    If all your bounded contexts will:

    • be developed in one programming language
    • access the same database engine
    • be developed by a relatively small team (up to ~20 people)

    then probably you should go with the second approach - each bounded context contains its own domain and application layer and all the bounded contexts share the same infrastructure and application layer.

    In other cases, you should considering the microservces/SOA architecture.

提交回复
热议问题