bounded-contexts

DDD - Association mapping between bounded contexts using Doctrine 2

孤街浪徒 提交于 2021-02-18 12:50:28
问题 I am struggling to understand the right way to implement association mapping between two entities from different bounded contexts using Doctrine 2. Suppose that there are two "User" and "Post" entities that belong to "User" and "Content" bounded contexts, respectively. There is also a "User" concept in "Content" context that determines the author of a "Post" through a Many-To-One association. Therefore, "User" in "Content" context is simply a value object containing the user id. My question

Identifying Bounded Context

十年热恋 提交于 2019-12-25 09:12:41
问题 everytime i think i understand how to recognize bounded context's i realize the waters are still murky. so here goes... i am developing a customer portal that contains the following features: Customers, Users, Announcements, Feedback, Documents, and Reimbursements. We are just putting a pretty UI over reimbursement approvals from another system, so this one is easy to see it's another BC we integrate with. Now with the others, I'm not sure how to group these together. Would all these belong

Serve static resources within jar files by Spring boot

最后都变了- 提交于 2019-12-22 08:16:03
问题 I'm developing a solution by multiple maven modules to handle different bounded contexts. Thanks to spring boot each module exposes own rest api and all of them hosted in one maven module with a class that annotated by @SpringBootApplication. The simplified project structure is looks like this: parent |-- pom.xml |-- ... |-- host |-- Application.java |-- resources |-- index.html |-- driver |-- api |-- resources |-- register.html |-- notify |-- ... |-- passenger |-- ... I've tried to use the

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

寵の児 提交于 2019-12-22 07:59:10
问题 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 populations in that domain. Now, in the survey-planning, we also need (some) information about the subject (for example: for planning a visit, or even for anticipated selection of questionnaire, in case the population the subject belongs to is known

DDD - How to design associations between different bounded contexts

牧云@^-^@ 提交于 2019-12-20 10:08:42
问题 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 properties simply ignore the boundries so that a domain object in bounded context A has a reference to an object in context B? Or, should there be no direct link from context A to B and does the object in context A have an "int ContextBId" property that can

DDD - How to design associations between different bounded contexts

∥☆過路亽.° 提交于 2019-12-20 10:07:17
问题 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 properties simply ignore the boundries so that a domain object in bounded context A has a reference to an object in context B? Or, should there be no direct link from context A to B and does the object in context A have an "int ContextBId" property that can

Bounded context implementation and design

╄→尐↘猪︶ㄣ 提交于 2019-12-20 09:04:21
问题 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 all the necessary columns that describe the customer. Columns in CustomerTbl (simplified): Name PhysicalAddress PaymentMethod The Shipping Context is concerned with Name and PhysicalAddress while the Billing Context is concerned with Name and

How can I atomically (or at least properly) create User in the system with multiple bounded contexts?

旧街凉风 提交于 2019-12-12 03:58:43
问题 I need to register user in the system. User cannot exist without a Role (and he surely cannot exist without login and password). Administrator is supposed to be able to add new users by selecting role, writing login/password and some user information. Login/password/security concerns are implemented as separate application/BC (authentication context), roles and permissions are in authorization context and user information is in separate account management context. How can I implement user

Entities across bounded contexts in Domain-Driven Design

让人想犯罪 __ 提交于 2019-12-09 08:14:18
问题 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 the Accounting context all that is relevant is the salary reference number and bank account. Do you have an Employee entity in the HR context and a Value-Type (e.g. SalariedEmployee ) in the Accounting context? class Employee { public BankAccount

Good practice to handle a use case requiring data from another bounded context

你。 提交于 2019-12-08 03:30:56
问题 My software is a kind of social network where members can, among other features, schedule some meetings between them. I chose to emerge those three bounded contexts (DDD): IdentityAndAccessContext , basically dealing with user authentication/authorisation. SocialContext , dealing with Members and all social information about them; their interests etc., akin a classical social network. MeetingsContext , dealing with meetings between some members. We're talking about translated Value Objects as