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
3
votes
4 answers

Bounded context and infrastructure relationship

Based on my understanding of ddd, services are ideally defined around bounded contexts. And interaction between these services are mirrored with the relationship of their respective bounded contexts. Things like, should a service interact directly…
3
votes
1 answer

relationship between upstream context and downstream context in ddd

Recently, I learn about ddd and it said that the relationship between two related bounded context is upstream and downstream. But is it possible that in one situation A is upstream and B is downstream and in another situation B is upstream and…
YeKc1M
  • 65
  • 2
  • 2
  • 9
3
votes
1 answer

DDD bounded context naming

Should bounded context names be plural or singular and why? For example, if I have car rental website should I have dealership bounded context or dealerships?
3
votes
1 answer

Identity Reference between two bounded contexts

I am looking to get the best practice around DDD/CQRS principles for handing relationships between bounded contexts. We have two BCs Property Management Context and Tenant Portal Context. We have the Home aggregate in the Tenant Portal context,…
3
votes
1 answer

DDD Bounded Contexts Different Models For The Same Concept

I have an ERP project with multiple sub-domains. It is not using CQRS or domain events. I have two sub-domains; CRM and Accounting. The customer concept needs to be modeled differently in the two sub-domains. CRM needs to know the size (number of…
aycanadal
  • 1,106
  • 2
  • 15
  • 42
3
votes
3 answers

Entity modeling across bounded context

Is there any drawbacks when a concept is modeled in a bounded context as a root entity and in another bounded context as a child entity (same identity in both BC's)? From Eric Evans DDD: ENTITIES other than the root have local identity, but it only…
nEAnnam
  • 1,246
  • 2
  • 16
  • 22
3
votes
1 answer

Making contexts explicit in the directory structure

I am looking for feedback on a certain directory structure for an application. I realize that this does not follow the classical stack overflow format where there is such a thing as "a correct answer", though think it is interesting nonetheless. To…
Jeroen De Dauw
  • 10,321
  • 15
  • 56
  • 79
3
votes
1 answer

DDD Bounded Context integration - Application Service vs Domain Service vs Repositories

I have a bounded context with an Application Service exposing application use cases with DTOs. The bounded context also includes a Domain Service exposing domain use cases with rich domain objects. Application Service is the "client" of the Domain…
Normand Bedard
  • 2,625
  • 2
  • 19
  • 22
3
votes
2 answers

What are the best practices to introduce a new BC to a DDD app?

This is a theoretical question about the introduction of new BCs in a system we use ES and CQRS with DDD. So there won't be concrete examples. There can be interesting problems by introducing new BC-s, which communicate with the old ones by…
inf3rno
  • 24,976
  • 11
  • 115
  • 197
3
votes
2 answers

.net implementation of communication between aggregate roots in different bounded context

This is the first time I am applying DDD concepts to a real world problem. I started with only 1 Bounded Context as the project is relatively small. However I found myself with classes that are almost identical i.e. very similar names, very similar…
3
votes
2 answers

Domain Driven Design Bounded Context Domain Objects

I'm trying to figure out how i approach DDD and the use of Bounded Contexts. I've tried to come up with an example, to illustrate my question. (I'm using anemic classes for quickness). I am trying to map out how I would go about separating domain…
Derek
  • 8,300
  • 12
  • 56
  • 88
3
votes
2 answers

Translator between bounded contexts in DDD (and some other questions)

I've been reading Eric Evans' DDD: Tackling Complexity in the Heart of the Software and in the section in context maps, Evans cited an example of 2 bounded contexts (Booking context and Network Traversal Service) using a translator to integrate…
g_b
  • 11,728
  • 9
  • 43
  • 80
3
votes
2 answers

DDD Bounded Context "integration"

We're trying to figure out the separated bounded context integration for a scenario. Say one context is the Document Core Bounded Context (BC) and has a Document Entity, with an Author. Using the IdentityAccessContext BC as in the Implementing DDD…
lko
  • 8,161
  • 9
  • 45
  • 62
3
votes
3 answers

Bounded Contexts in DDD with CQRS. Sharing Aggregates/Entities. Possible?

I found this code sample. https://code.google.com/p/ddd-cqrs-sample/ Seems very complete and well organized. Not a "framework", just a sample project with a very granular and explicit ways to do things. BUT, incomplete. And this brings some…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
3
votes
2 answers

optimization of db queries when implementing bounded contexts

In our project we're trying to apply the Bounded Context ideology and we've faced kind of obvious problem of performance. E.g., we have different classes (in different contexts) for representing a user in the system: Person in our core domain's…
vorou
  • 1,869
  • 3
  • 18
  • 35
1 2
3
11 12