Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
1 replies
26 views

I've got a modular monolithic backend in golang. The project it's in the beginning but our plans for the backend is to migrate it to microservices WHEN it's necessary and do it gradually. Here's how ...
Alan Graton's user avatar
1 vote
0 answers
20 views

I have a Spring Boot / Java application following Domain-Driven Design and Event-Driven Architecture. In my domain service, I create a ReservationCreatedEvent (a domain event) and publish it: ...
Nur Sultan ASLAN's user avatar
-1 votes
0 answers
44 views

I have a DDD-ish application where a long-running business process is split into workflow steps. Each step is idempotent and starts from a message handler. Very simplified flow of a single step: ...
Nimchuk_R's user avatar
Best practices
1 vote
1 replies
35 views

I'm building a Nuxt 3 application using a feature-based architecture inspired by Domain-Driven Design. Each feature is meant to be fully isolated, with its own components, state, API layer, and ...
KobiM1's user avatar
  • 81
1 vote
1 answer
95 views

I’m building a Java microservice using Spring Boot 3.5.7, Kafka, and the Outbox Pattern. In my domain layer, I raise a domain event: package com.turkcell.reservation_service.domain.event; import com....
Nur Sultan ASLAN's user avatar
Best practices
0 votes
2 replies
121 views

I’m designing a domain model where some entities evolve over time, and I need to keep a historical record of their state that can be retrieved later. A simplified example: A Credit Line represents a ...
MABC's user avatar
  • 605
Advice
6 votes
7 replies
354 views

Our current codebase exists as a monolithic .NET application. The many years of legacy has made it difficult for our engineers to make changes and we're looking to Strangler Fig our way out of a Big ...
Jaidiac's user avatar
  • 101
0 votes
1 answer
53 views

I am not sure what I should do, I am learning DDD + hexagonal architecture in a spring modulith project and our teacher has not given us any examples on how to do this I have a restaurant aggregate: ...
radu-matei's user avatar
3 votes
2 answers
218 views

I'm implementing a DDD app where my entities emit DomainEvents for auditing purposes. Every action that occurs in my board should log something to the DB. In the example bellow, I'm logging that ...
Lucas Constantino's user avatar
0 votes
0 answers
38 views

I am working on my first service using ddd. My domain layer looks simillar to: / domain /A /aggregateA.py -> fires an EventA /aggregateARepository.py /B /aggregateB.py /...
AF_cpp's user avatar
  • 591
0 votes
1 answer
110 views

I'm trying to chain Spring transaction events, but the second @TransactionalEventListener is not triggered when an event is published from within another AFTER_COMMIT listener. Here's a minimal ...
xianyuli's user avatar
1 vote
1 answer
90 views

I know that there are many articles on this subject and that entity has identity and equality is provided through this identity, while valueObject is provided through its values. But I'm having a ...
bart's user avatar
  • 103
0 votes
0 answers
65 views

There is a PHP project with DDD approach, i.e. class entities have AggregateRoot. The main classes of entities inherit from AggregateRoot and are implemented in the logic of the object. Is it allowed ...
Alexey Shimansky's user avatar
0 votes
1 answer
47 views

In my bounded context we have User and webinar aggregate roots. The invariant is that a user can only be added to webinar once. To fulfill this, webinar aggregate has a list of participant Ids to ...
Sepehr Abaszadeh's user avatar
0 votes
0 answers
58 views

I am trying to understand DDD and CQRS, but I am confused by the idea that commands and queries are part of the domain alongside domain events as messages. Others say that commands and queries are ...
Florin S's user avatar
0 votes
1 answer
88 views

I have an entity like this: public class Article : Entity<ArticleId> { public ArticleTitle Title { private set; get; } public ArticleMarkdownBody Body { private set; get; } public ...
Hossam Fares's user avatar
1 vote
1 answer
118 views

We are building a system using Domain-Driven Design (DDD) in C# (.NET), and we have a performance-related design concern. Currently, in our domain model, a Customer creates OfferDetails, and each ...
NoName's user avatar
  • 245
0 votes
2 answers
132 views

I've recently started learning Nestjs and backend development in general. I got familiarized with the concept of DTO. Each and every tutorial/article on the Internet focuses on their usage for ...
Lazouski's user avatar
  • 101
0 votes
1 answer
53 views

The scenario: - infrastructure/ ├── dtos/ │ ├── note_dto │ ├── todo_dto │ └── note_preview_dto <-- includes 3-5 previewTodos from database │ ...
mavini.s's user avatar
  • 248
0 votes
1 answer
93 views

I would like to ask you a question about dividing the method into small units. It hasn't been long since I learned about DDD(Domain Driven Design). In both ways, branch logic is likely to increase ...
NINE's user avatar
  • 645
1 vote
2 answers
131 views

I am building a small python application to learn Domain-Driven-Design (DDD) approaches. Therefore I am using a dataclass/attrs class as my domain model and also use this class to imperatively model ...
5th's user avatar
  • 2,515
0 votes
1 answer
118 views

I’m applying the DDD Aggregate pattern in a Spring Boot application. For example, Order is the aggregate root of OrderItem, and they are mapped like this: @Entity public class Order { @Id ...
좋아감자탕's user avatar
0 votes
0 answers
70 views

I’m studying Spring Data JDBC through Maciej Walkowiak’s video (https://www.youtube.com/watch?v=ccxBXDAPdmo), which presents a Movie aggregate root with a one-to-many relationship to Rental entities. ...
theNikki1's user avatar
  • 153
2 votes
2 answers
128 views

Following the domain-driven-design principals, let's say we are building B2B order management system. One of the requirement is that for each customer/order/order item we should be able to assign ...
GeorgeKarlinzer's user avatar
0 votes
0 answers
52 views

In my Angular NX project I want to separate my app domains in folders with sub-folder for each feature/util/store etc. All exposed APIs are referenced in 'public-api.ts' barrel files in each of those ...
Marcello di Simone's user avatar
0 votes
0 answers
80 views

1.When an agent is created, a token is automatically generated. 2.When a token is created, a corresponding UI is also automatically generated. 3.Since the token and UI are tightly coupled, a combined ...
user30039814's user avatar
0 votes
1 answer
85 views

I know that If one aggregate has reference to another, the first one has to have ID property of the second. For example: FooId extends AbstractIdValueObject { } Foo extends AggregateRoot { } Bar ...
Alexey Shimansky's user avatar
0 votes
1 answer
79 views

I'm working on a Domain-Driven Design (DDD) project and I'm trying to clarify when the uniqueness of an attribute should be treated as a domain invariant versus being a technical or infrastructure ...
Mike93041's user avatar
  • 389
0 votes
1 answer
74 views

I am currently building an online course platform where you can create courses and assign them to users as mandatory trainings (creation of training and assigning them doesnt have to be done by the ...
hadamard's user avatar
  • 453
3 votes
2 answers
269 views

Following domain-driven design, I'm trying to implement an outbox pattern, that will save domain events on an AggregateRoot derived entity in the same "transaction" in CosmosDb. I'm aware I ...
Phil Golding's user avatar
1 vote
2 answers
85 views

We use domain objects to encapsulate business logic. Sometimes, we need to change the behavior of an entity due to new system requirements. A common approach is to modify the method or property by ...
Daggen's user avatar
  • 61
0 votes
1 answer
92 views

I'm encountering two issues with Entity Framework Core 8.0 when using strong type IDs and a generic entity base class. When attempting to create a migration, I receive the error: Unable to create a '...
Levi Ackerman's user avatar
0 votes
2 answers
74 views

For example, I have the following code: public void Update(string firstName, string? middleName, string lastName, string emailAddress, string phoneNumber, ...
LemonPotion's user avatar
0 votes
1 answer
106 views

I'm working on a cryptocurrency grid trading system where bots create Order entities. When an Order is created, it triggers a domain event to send the order to the corresponding Exchange. The issue is ...
nop's user avatar
  • 6,617
0 votes
1 answer
82 views

I searched Stack Overflow and didn't find an answer to a similar question. In a query handler, which is in the Application layer, I want to retrieve only a subset of the properties from the Customer ...
MrChudz's user avatar
  • 1,255
1 vote
2 answers
46 views

I have multiple microservices in my solution, let's call them salary processing, cards, kyc docs, and I need to enforce compliance so that if a kyc doc has expired, I block the card, and if salary ...
mahmoudmh's user avatar
1 vote
0 answers
33 views

I have a DDD application, with its Domain, Application and Presentation layers. My presentation layer needs to persist some configuration that have nothing to do with the application but rather with ...
Andrea Bardelli's user avatar
0 votes
0 answers
48 views

I have an aggregate root named Building. In the Building class, I have three methods for adding, updating, and deleting a building. When adding a building, I create a new Building object. When ...
Mohammad Hossein Hashemi's user avatar
3 votes
1 answer
97 views

I added -g option in aarch64-none-elf-as command to compile a file vector.s. This file is the exception vector for arm64 machine (see Table 4 in https://developer.arm.com/documentation/102412/0103/...
Chan Kim's user avatar
  • 6,159
0 votes
1 answer
19 views

I am designing a DDD-based travel planning system in Java, following a layered architecture: UI Layer → Handles user interactions. Application Layer → Contains business logic and orchestrates domain ...
KzeroJun's user avatar
0 votes
1 answer
66 views

I wonder how to build correct hierarchy and where to cover invariants. There are following entities: Faculty, Course, Student, Teacher. Faculty consists of Courses. Course cannot exist without Faculty....
Darer's user avatar
  • 3
0 votes
1 answer
125 views

Problem / Context In my application, I have two entities where the Id of the entities as represented by the database are GUIDs. However, in code I represent these IDs as readonly record struct ...
Kayden Miller's user avatar
1 vote
1 answer
134 views

I've recently been learning about the decorator pattern and want to use it in my code, but I see a challenge present itself when I want logging as well. With an example from Zoran Horvat I have an ...
Birdalicious's user avatar
1 vote
1 answer
49 views

My domain entity often looks like this: class { rename(string $name): void { if ($this->name === $name) return; $this->name = $name; $this->...
Alexey Shimansky's user avatar
0 votes
1 answer
202 views

I have a problem with the structure of my API. My API includes the study domain class, which has an educationLevelId attribute; This attribute belongs to the academicLevel domain class. Study Domain - ...
JUAN PABLO SOLARTE HOYOS's user avatar
2 votes
0 answers
200 views

I have the following issue with an "uncovered" dependency while running deptrac: App\Infrastructure\Service\ExternalServiceClient has uncovered dependency on App\Infrastructure\Service\...
MariusP's user avatar
  • 622
3 votes
1 answer
256 views

Because I want my applications to follow some kind of DDD structure, I want my Controller, Entity, Repository, Form etc to sit within a specific directory. For example: src/Appication/Dealer/...
Stok's user avatar
  • 51
0 votes
1 answer
101 views

My current solution is as follows - I want to know whether this is correct. Inside a HttpPost action method, I have the following code - Case type is an entity, case variable is passed as a parameter ...
GrassConcreteFloor1788's user avatar
0 votes
2 answers
135 views

I realize that there are a bunch of posts somewhat covering this topic already, but there I am yet to find an exact answer to the question that I have. Lets say that I'm developing an application for ...
JackG's user avatar
  • 73
0 votes
2 answers
95 views

I've been reading "Implementing Domain-Driven Design" while looking at the code samples, but I'm not sure how to deal with aggregates containing a lot of value objects. For example, this is ...
what the's user avatar
  • 495

1
2 3 4 5
139