Git Product home page Git Product logo

Comments (4)

chris-pardy avatar chris-pardy commented on May 20, 2024 1

@mauroservienti I think this approach makes sense. Giving some thought to our use case it feels like this idea works really well with CQRS so you should never have a case of needing to read data from 1 service before you dispatch a command to another service.

from all-our-aggregates-are-wrong-demos.

mauroservienti avatar mauroservienti commented on May 20, 2024

Hi @chris-pardy. Yeah you’re right, I was in hurry with the demo and that was the first solution that came to mind. CartIdAppender doesn’t sound like the solution I was looking for, ensuring that a Cart ID is probably someone else responsibility. Not to mention that it’s a technical requirement, I’ll give it more thoughts and as soon as I come up with a better design I’ll update this issue. Thanks.

from all-our-aggregates-are-wrong-demos.

mauroservienti avatar mauroservienti commented on May 20, 2024

@chris-pardy I raised #2 as a different approach to solve the problem. I haven't changed the logic, but given that now the CartId generation is completely disconnected from the ViewModel Composition process, it can be changed to whatever different requirement.

from all-our-aggregates-are-wrong-demos.

mauroservienti avatar mauroservienti commented on May 20, 2024

Agreed. I’ll merge the PR and close this one then, feel free to reopen or raise other issues. Thanks!

from all-our-aggregates-are-wrong-demos.

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.