Questions tagged [Problem-oriented design] (42)

1
answer

Mazarakata connection. How to change ID?

Delve much in DDD. The issue is megagraphitti connections. The first rule Megagreeter relations is that the units always refer to each other using a unique identifier (e.g. primary key) instead of direct object references. This is understandable, but what if we went a little different? For example, there are Activities. In...
Kira_Donnelly asked April 18th 20 at 13:06
1
answer

How to implement a bounded context of cities?

Long tormented by the question of the correctness of the implementation of the cities project in different contexts. I can not decide for themselves how best to proceed. I have different contexts that use cities, regions, countries. The same addresses are used. If I understand correctly bounded context, it is said that i...
dino_Bahringer58 asked April 18th 20 at 12:53
0
answer

Can the essence be between an associative connection or for such a case it is necessary to use Assembly?

In advance I apologize for the scant knowledge of DDD. If I'm wrong, please correct me. There are entities: ORDER, SPOSABLE In fact the ORDER there is a reference to the ID SPOSOBAMI (many-to-one). Can there be a full associative relationship between the object ORDERING and SPOSABLE, that is in fact the ORDER is a metho...
Vicky.Carter8 asked April 9th 20 at 09:31
0
answer

How best to organize the event subject area with a simple example?

Hi all. Practicing OOP with DDD approach with a simple example. Let's say we have in the garden there is a tap for watering flower beds. Will try to simulate it work. Thus, the faucet can be opened and closed. Let us have the unit Tap class Tap { // ... id and other properties omitted public function open() { // Emit ev...
Keith_Hagen asked April 8th 20 at 10:37
3
answers

How to name classes of services domain in DDD? And how applicable service words in Laravel?

I understand that in DDD the service layer contains the logic of the use-cases, manipulating entity/by aggregate (by calling their methods, containing BL). Then the question is, how to call the service classes? What they tied? For example, there is a banal action of the user registration, then the service will be called Us...
Carmen.Mills asked April 7th 20 at 16:26
3
answers

How to do complex queries using the repository and merge different tables?

Welcome! I was taught to work with domain driven design. In this approach, I have proposed to divide the access data for the repositories. That is, one table database in our company proposes to use a single repository. With simple queries, everything is clear. As part of this approach is to use data from multiple tables? O...
Ceasar_Hane53 asked April 7th 20 at 10:13
2
answers

Event Sourcing transaction projections?

Hi all. Tell me, I have a Ui layer, where the controller sends a command in a layer application that generates the event and then projects it in normalisierung database. Faced with the problem when it comes to collinite when you create two identical users. In simple words, the first user is logged, the event is saved on the...
arvid_Dooley41 asked April 7th 20 at 09:55
2
answers

Domain Events: how best to do dispatch?

Still can not solve the team how to do dispatch of domain events. My option is to store events in an array in the entity, and then outside to dispatchit. The other person offers through singleton to do dispatch the event. A variant with a singleton I don't like the fact that the domain knows about the Application layer, als...
winnifred_Herz asked April 7th 20 at 08:54
1
answer

How to implement an operation that changes the state of multiple aggregate roots, the application with a distributed database?

Change and save multiple aggregates in one transaction, has its disadvantages, the most unpleasant disadvantage: aggregates must be on the same server(one DB), otherwise they cannot be saved in one transaction. Of course I don't need this and are unlikely to need in the near future, just really want to know how to solve suc...
Aracely asked April 4th 20 at 12:56
0
answer

DDD Authorize?

Hi all. They are trying to the Feng Shui authorization by the canons of DDD. In the book of Vernon mentioned that it is possible to do this by using the segregated core, a separate generic model with limited context or to do on top of domain layer, layer, layer responsibility. Segregated core: it's not really about a lot of...
Halie_Parisian asked April 1st 20 at 17:32