Questions tagged [bounded-contexts]

Bounded Context is a concept from Domain Driven Design (DDD). It refers to the explicit boundaries in which a model applies such as the team organisation or physical manifestation. It is also used instead of the generic and deprecated tag [context].

Bounded Context is a concept from Domain Driven Design (DDD). It refers to the explicit boundaries in which a model applies such as the team organisation or physical manifestation.

References

See the description of Domain Driven Design.

The main information is under the tag

173 questions
38
votes
6 answers

Communicating between two Bounded Contexts in DDD

I have few different Bounded Contexts in the domain. The validation of a CRUD operation is built in each Bounded Context. For example, I can create an entity called GAME only if the person creating it is a Group Leader. I have two Bounded Contexts…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
19
votes
4 answers

Entities across bounded contexts in Domain-Driven Design

I am trying to understand how entities operate in multiple bounded contexts. Given an Employee of a Company. In (for example) the Human Resources context, this person has a name, surname, address, salary reference number, and bank account. But in…
Asher
  • 1,016
  • 1
  • 6
  • 20
17
votes
2 answers

How to model entities that exists in all bounded contexts and that are a central part of the app?

I'm making an application using DDD principles. After thinking everything through as much as I can I'm down to start making my Bounded Contexts. I haven't set the final structure yet, but as of now my application will consist of the following…
cfs
  • 1,304
  • 12
  • 30
15
votes
4 answers

A bounded context is a full application?

I've been reading about DDD and bounded contexts and I think I'm getting the idea wrong. At first, I liked the idea of subdomains and bounded contexts, I understood it like that: there's a software to be developed, but attacking all at once is too…
user1620696
  • 10,825
  • 13
  • 60
  • 81
14
votes
2 answers

How to represent bounded contexts?

I mean - physically, in code. Organization of naming, namespaces, folders, assemblies, database/s. How bounded contexts should interact? For example, feel free to use classic e-commerce business domain.
Arnis Lapsa
  • 45,880
  • 29
  • 115
  • 195
13
votes
1 answer

Domain Driven Design: How to deal with User Entities in different bounded context?

I have a question regarding Domain Driven Design. In the User Account/Profile bounded context of my application, there is a User Entity with account information(id, username, password, email, salt, etc) and profile information(fullname, avatar,…
13
votes
4 answers

DDD. Shared kernel? Or pure event-driven microservices?

I'm breaking my system into (at least) two bounded-contexts: study-design and survey-planning. There's a concept named "subject" (potential subject for interviewing) in the study-design context. We also maintain associations between subjects and…
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
12
votes
1 answer

Relational database schema for event sourcing

I am trying to store domain events in a postgres database. I am not sure in many things, and I don't want to redesign this structure later, so I am seeking for guidance from people who have experience with event sourcing. I have currently the…
inf3rno
  • 24,976
  • 11
  • 115
  • 197
12
votes
2 answers

Bounded context implementation and design

Let's say I have two bounded contexts, the Shipping Context and the Billing Context. Each of these contexts need to know about the customer. At a data level, the customer is represented by a CustomerTbl table in a database. This table consists of…
11
votes
4 answers

DDD - How to design associations between different bounded contexts

I have setup a domain project which is being populated with an ORM. The domain contains of different aggregates each with its own root object. My question is how properties that cross the aggregate boundries should be treated? Should these…
Laoujin
  • 9,962
  • 7
  • 42
  • 69
8
votes
3 answers

Should database primary keys be used to identify entities across microservices?

Given I have two microservices: Service A and Service B. Service A owns full customer data and Service B requires a small subset of this data (which it gets from Service A through some bulk load say). Both services store customers in their own…
Mark Chidlow
  • 1,432
  • 2
  • 24
  • 43
8
votes
3 answers

Size of a bounded context

I've started learning the principles of DDD and I'm currently trying to get a grasp of the concept of a bounded context. In particular, how do you decide just how big (or small) it has to be? Yeah, I know, as small as possible and as big as…
Thorsten Westheider
  • 10,572
  • 14
  • 55
  • 97
8
votes
1 answer

Implementing Bounded Context to Entity Framework Based Infrastructure

I had created an infrastructure our brandly new intranet project and tried to follow nearly all best practices. Also i want to mention, too, this is my first time for creating an architecture from zero. Currently my infrastructure's first version…
6
votes
2 answers

DDD: How many aggregates should have a single bounded context?

How many aggregates should have a single bounded context? I'm asking this question due the reason, that the information from books and other resources are too broad/abstract. I suppose, that it depends on certain domain model and its structure. How…
user8245660
6
votes
3 answers

ddd - How to separate bounded contexts and share events?

I am actually reading a book called "DDD in PHP", to help me understand the Domain Driven Design. So far everything is good, but I struggle to understand how to implement one specific topic without coupling Bounded Contexts: Domain Events Let's say…
1
2 3
11 12