Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:37:06+00:00 2026-05-24T01:37:06+00:00

In a nutshell, my domain allows users to submit stories (about a person or

  • 0

In a nutshell, my domain allows users to submit stories (about a person or team of people) that contain a multitude of different states and transitions its can be in and what behavior is allowed during those states.

So, at this state in the design, users are creating drafts and submitting their stories. My domain contains Stories, Teams, and Team Members.

My first question is who has the responsibility to load the complete aggregate? Should the application layer specify this based on the task at hand? Should he really need to know what all data needs loaded? Or should this belong to the repository that always eager loads the associated data? Maybe use lazy loading (transparency can be a little scary)?

For my next task, I need to allow comments to be added to stories and create records whenever a user views a story. Would this belong to the aggregate since they have no meaning without a story? Here is my confusion. If they do belong to the aggregate, I would have to load the entire aggregate when adding a comment or simply adding a record it has been viewed?

Any help would be great and as you can see, I’m new to DDD.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:37:06+00:00Added an answer on May 24, 2026 at 1:37 am

    I’m not sure how this would work in EF, but with NHibernate I would have the application layer load the aggregate root from the repository with lazy-loading enabled (I assume EF has the same lazy-loading capability).

    The Comments would be accessed under the aggregate of the Story (again lazy-loading is your friend here).

    I would not put the story-views under the story since that sounds like an orthogonal concept to the story itself. I’ve gotten into trouble before by adding user log-in info (like last log-in time) to the user. It was expedient, but made a mess of my model. Your mileage may vary on that one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, my project, in a nutshell, allows users to view an ImageMap with predefined
In a nutshell, I have a solution that builds fine in the IDE, and
The Javadoc about String.intern() doesn't give much detail. (In a nutshell: It returns a
In a nutshell , I want to have different faces for some types of
In a nutshell, I wish to create a query that will help me find
The problem in a nutshell is that in development mode we'd make changes to
I have this code copied from C# 4.0 in a nutshell that uses Attribute/Reflection
I'm using LinqKit PredicateBuilder (http://www.albahari.com/nutshell/predicatebuilder.aspx) for a method that do searching. This is how
Here are the specs that I'm trying to implement in a nutshell: 1) Some
In a nutshell: how do I access the methods of a class that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.