Code Monkey home page Code Monkey logo

Comments (3)

adrai avatar adrai commented on May 26, 2024

Every pre-condition and business rule has only what's defined in the aggregate. Please do not think in data! Perhaps you need to enlarge your aggregate...

from node-cqrs-domain.

ludydoo avatar ludydoo commented on May 26, 2024

Okay I see. I'm used to RDBMS so... I see "by table". Though, how would you see that kind of aggregate? Let's say you're enabling your client to store information about 1000's of people. Each of them has multiple contact information (first name, last name, phone, email, ...), but you have to be sure that each has a first name and last name set.

Also, the client could define custom contact information numbers that he wants to define for each of his registered person. Let's say the client wants to be able to add "Postal Name" as a contact information type, and mark it as required for all new clients?

And also, each person may or may not have multiple mandates associated. Each of those mandates have activities did on them, of a certain type (which the client defines for his business)... You get the idea? Maybe RDBMS is more tailored for this kind of job. What do you think ?

I understand the concept of aggregate as an "independent logical unit", but what happens when you have to normalize the data, and moreover, when the client wants to be able to normalize its data for his business?

from node-cqrs-domain.

adrai avatar adrai commented on May 26, 2024

All this could fit with cqrs... but I think you don't want to design the intentions of the system, but only manage your data. So a better fit is to use a CRM/ERP.

from node-cqrs-domain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.