Skip to main content

All Questions

6 votes
3 answers
661 views

Hexagonal Architecture + Domain Driven Design. How to perform a correct implementation?

Currently, I am trying to implement these two architectures together with Java and Spring (although technology shouldn't matter I think). But I'm encountering problems getting them to work together. I ...
RuDaHee's user avatar
  • 171
0 votes
2 answers
221 views

Where perform mapping in strict Domain-Driven Design?

I want to create an example application where we use a strict domain-driven design and layering (controller, service, repository). Most notably, we have a clear distinction between the domain and the ...
Gman's user avatar
  • 9
6 votes
3 answers
3k views

In vertical slice architecture, how can I deal with entities/repositories that are used in multiple slices?

I'm trying to group the components of my system by funtionality. This is the analysis class diagram of my system model. A service class that involves a Post entity might necessarily interact ...
cidra's user avatar
  • 363
3 votes
4 answers
1k views

Role of DTOs in Rich Domain Model

I work with Spring applications. Recently I have found this article about the Anemic Domain Model. They recommend putting logic in Entity classes. It solves a problem that Martin Fowler described in ...
Valerii Sloboda's user avatar
3 votes
1 answer
21k views

Project Structure of Domain Driven Design in maven Java Spring-Boot [closed]

My team is in dilemma, we have an existing maven spring-boot Java8 project with following onion architechture. controller --> service --> dao --> jpa repositories ...
Dave Ranjan's user avatar
8 votes
1 answer
5k views

Updating nested objects in DDD Aggregate by example: delegation or direct access from the root?

The example domain problem There is a student attendance tracking system that keeps records of student attendances of ExerciseGroups. Course is a top-level component, AR, describes a generic info ...
ovnia's user avatar
  • 461
2 votes
0 answers
406 views

Examples for "serverless" Java service for AWS Lambda

Doesn anybody have practical experience with implementing a (micro)service based on AWS Lambda? My team is currently working on an MVP. We started with a monolith and that has worked very well. It's ...
EagleBeak's user avatar
  • 527
3 votes
2 answers
1k views

Value object that depends on multiple aggregates' lifecycle in DDD

During prototyping a simple ddd application from public transit domain I've faced a problem with one value object - Transit Pass: Each Customer can buy a transit Pass thatallows a passenger of the ...
ovnia's user avatar
  • 461
1 vote
1 answer
841 views

Rich Model vs God Class [duplicate]

I have a legacy code containing some behaviour classes, like services and controllers. My model is pretty anaemic. It's just a repository of getters and setters, and I want to refactor it. There is a ...
user1531914's user avatar
2 votes
2 answers
1k views

DDD Request Validation Handling

I stuck somewhere that I can't find a solution! There are plenty of validation questions here, but as far as I see, most of them were asking about entity validation. But what about request validation? ...
Adem İlhan's user avatar
0 votes
3 answers
615 views

Assigning responsibility for cancelling an Order

During a conversation with our Domain Expert we can across this feature: A Customer service agent can cancel an Order by decreasing its quantity. To cancel an Order we decrease its quantity by the ...
Songo's user avatar
  • 6,663
2 votes
2 answers
2k views

From a DDD perspective is a report generating service a domain service or an infrastructure service?

Let assume we have the following service whose responsibility is to generate Excel reports: class ExcelReportService{ public String generateReport(String fileFormatFilePath, ResultSet data){ ...
Songo's user avatar
  • 6,663