Programming Stuff

DDD – Defining Bounded Contexts

I was working on a project that required to be organized in bounded contexts as it is explained here:

It was very difficult and not intuitive, to find how many bounded contexts are need it, and what criteria to use to define them. It requires practice and a lot of experience.

But, one exercise that helps me a lot was to draw the entities (classes/tables) in a paper and their relationship. Once I see the dependencies (strong and weak relationship) between them, it was clear to me how to created the bounded context around them. Hopefully this technique helps you as well.

In the following example, you can see a rough draft of 3 Bounded Contexts for a Dealership Management Application.