Code Monkey home page Code Monkey logo

Comments (5)

VaughnVernon avatar VaughnVernon commented on September 27, 2024 1

Look at agilepm.application for queries. Also look in infrastructure persistence for projections.

from iddd_samples.

VaughnVernon avatar VaughnVernon commented on September 27, 2024 1

My mistake, you are correct. There are no projections or query interfaces in that project as iddd_agilepm is not event sourced. However, if you look at the iddd_collaboration project you can see examples of both event sourcing and CQRS.

from iddd_samples.

VaughnVernon avatar VaughnVernon commented on September 27, 2024 1

You will need to decide what works best for you. From your statements it could well be that CQRS would help simplify your queries.

from iddd_samples.

tyrion9 avatar tyrion9 commented on September 27, 2024

Thank you for your question is a great honor for me.
But I read very carefully and don't see any code about query command.

See the screen snapshot, it is not any services for find, query, search ... for data
image

from iddd_samples.

tyrion9 avatar tyrion9 commented on September 27, 2024

Dear Vaughn Vernon,

Ofcourse, I read the code and feel so excited.

I'm very curious about how you building query services in iddd_agilepm. You may create another query model that is separated with command model as CQRS (like QueryService in iddd_collaboration) or just use DTO Assembler to render command model (domain object).

A separated query model and query service is make more sense. But reuse domain model for read / render user interface that is hard to do. If I do that, I may call many services to retrieve data from small aggragtes to assemble into more bigger query model. It's not a efficient multiple sql commands.

I feel that if using DDD with small aggregates, almost projects must be use CQRS to separate command and query model. Do you agree about that?

from iddd_samples.

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.