Questions tagged [domain-driven-design]

Domain-centric design (DCD) is a methodology for creating software solutions tailored to intricate requirements by closely aligning the implementation with an ever-changing model of key business elements. Keep in mind that if you have any conceptual questions regarding DCD, it's recommended to seek advice on domain-driven-design.

"ddd - Determining the Optimal Location for Synchronizing with a Remote API

To ensure the functionality of my application, it is essential to regularly synchronize data from an external service, which currently happens to be an API. This requires managing multiple entities simultaneously, prompting the need for a dedicated Domain ...

Exploring the world of domain-driven design through the lens of

In continuation of my previous inquiry regarding Zend models architecture (special thanks to Bill Karwin), I have delved into some readings, including this article: as well as this question: How To Properly Create Domain using Zend Framework? Having ga ...

Exploring the placement of domain logic in DDD and Node.js

Implementing DDD in a node.js application with es6 and mongoose for the data access layer. I observed that mongoose has a ".methods" property linked to the model schema. Would it be best to add business logic here or create a separate object mirroring th ...

Is it possible for a voiceover artist to initiate API requests?

As I work on the registration feature of my application, I am faced with the requirement that email addresses must be unique in the database. Since I am responsible for the front-end development, I am considering creating a Value Object (VO) that can make ...

Leveraging the framework's event dispatcher to trigger a domain event

When I need to trigger domain events, should I utilize the framework's specific Event Dispatcher or create my own custom Event Dispatcher that is implemented by the framework's Event Dispatcher? Despite the fact that the framework provides a robu ...

Learn how to trigger an HTTP exception after a failed command in a saga with NestJS CQRS

Currently utilizing the NestJS CQRS pattern to handle interactions between User and UserProfile entities within my system. The setup consists of an API Gateway NestJS server along with dedicated NestJS servers for each microservice (User, UserProfile, etc. ...

Ways to assign unpredictable values (such as ids, dates, or random numbers) to a Domain Entity or Aggregate Root when it has been injected as dependencies

I am currently developing a frontend repository that follows an innovative hexagonal architecture approach with domain-driven design principles, and it utilizes Redux Toolkit. The development process involves Test-Driven Development (TDD) where I employ c ...

Is it recommended for application logic to interact with repositories directly?

Implementing the DDD approach, I have decided to relocate a class to a unified folder because it will be shared across various modules. However, I am encountering difficulties in integrating Dependency Injection and container usage. Specifically, the Menu ...