bounded-contexts

Bounded Contexts and EF Code First - How to put them together?

你。 提交于 2019-12-07 13:42:12
问题 IMHO, one of the most brilliant DDD concept is the ability of separate contexts in a application. But I'm confused on how I can put everything to work together. First, I know that one thing is not related to other. But my question falls exactly on the Infrastructure/ORM part. For example, I have a domain object called Procedure (a medical procedure). In the Context of Registration , only thing that matters is Code and Name . But in Procedure Management Context , I have a lot of other fields

Serve static resources within jar files by Spring boot

穿精又带淫゛_ 提交于 2019-12-05 16:03:18
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 same pattern when facing with the composite UI: one place that keeps layouts, static resources and in

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

旧巷老猫 提交于 2019-12-05 13:02:44
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 beforehand). So, I need that "subject" in both contexts. What approach should I pick? Having a shared

Size of a bounded context

人走茶凉 提交于 2019-12-04 23:14:53
问题 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 necessary (according to Vaughn Vernon). Let's say I were to model a blog. I could then go and say there are 3 bounded contexts involved: 1) Front Page (featuring the most recent articles, no comments shown) 2) Discussion (a single article including

Relational database schema for event sourcing

泪湿孤枕 提交于 2019-12-04 11:44:35
问题 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 following table: domain events version - or event id, integer sequence, helps to maintain order by replays type - event type, probably classname with namespace aggregate - aggregate id, probably random string for each aggregate timestamp - when the event

Size of a bounded context

爱⌒轻易说出口 提交于 2019-12-03 15:30:35
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 necessary (according to Vaughn Vernon). Let's say I were to model a blog. I could then go and say there are 3 bounded contexts involved: 1) Front Page (featuring the most recent articles, no comments shown) 2) Discussion (a single article including comments) 3) Article Composer (where I compose an article). However, this doesn't feel right (the ubiquitous

Integration between various Domain Driven Design systems

∥☆過路亽.° 提交于 2019-12-03 13:51:34
问题 I have recently been adopting Domain Driven Design principles, but I'm having a bit of trouble implementing Bounded Contexts and the integration between the contexts and/or other systems. For example, take the following systems: Warehouse/Stock Keeping System Entities would include 'Product' which would have properties such as 'Quantity', 'Location' Online Ordering System Entities would include 'Order', 'OrderLine', and 'Basket'. Would it also have its own Product entity which would have

Entities across bounded contexts in Domain-Driven Design

旧时模样 提交于 2019-12-03 11:27:41
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 BankAcountDetails { get; set; } public string FullName { get; set; } public Address ResidentialAddress {

Relational database schema for event sourcing

自作多情 提交于 2019-12-03 07:31:27
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 following table: domain events version - or event id, integer sequence, helps to maintain order by replays type - event type, probably classname with namespace aggregate - aggregate id, probably random string for each aggregate timestamp - when the event occured promoter - the promoter of the event, probably user id details - json encoded data about the

DDD - How to design associations between different bounded contexts

醉酒当歌 提交于 2019-12-02 21:08:24
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 be used to get the domain object from B through the B aggregate root? Or ... An example: Context A =