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

  • Home
  • SEARCH
  • 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 684597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:50:03+00:00 2026-05-14T01:50:03+00:00

If Book aggregates Chapter which in turn aggregates Page, then what should be the

  • 0

If Book aggregates Chapter which in turn aggregates Page, then what should be the aggregate root? One possibility might be:

Book is an aggregate root with Chapter as a leaf and Chapter is an aggregate with Page as a leaf.

In this scenario, Chapter is a leaf in one aggregate and a root in another. Is this okay? Would it make sense in this scenario to have two repositories, one for Book and another for Chapter? If so, then couldn’t the Chapter repository be used to circumvent the fact that access to Chapter should only happen via Book? What would be the best way to handle a situation like this?

  • 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-14T01:50:03+00:00Added an answer on May 14, 2026 at 1:50 am

    In my opinion, the whole idea of aggregate roots make sense only when there is a single root for a given aggregate. Which one — it depends on your requirements. Let’s examine two possibilities:

    1. Book is a root and it contains Chapters containing Pages. This design is useful when your usage scenarios all include interacting with books: users select books and apply their operations/commands on whole books. Notice, that the Book aggregate is in ‘operations’ layer of your domain model — it, as a whole, represents concepts what part of are day-to-day business.

    2. Chapter is the root. Is contains Pages. It also has reference to Book. This design is useful when usage scenarios focus on interacting with individual chapters. Chapter aggregate is in ‘operations’ layer now. Book forms an aggregate by itself but is is placed in ‘potencial/capabilities’ layer beneath the operations layer. This means that books are an asset to the organization, an enabler for the business, but are not part of day-to-day activities. Moreover, books don’t know anything about being referenced by Chapters.

    To sum up, all depends on specifics of you case, the requirements you have. Be aware that layers in the domain model ore primarily a business concept, not technical one — they hep you to model the domain well. For further information please read Eric Evans’ Domain-Driven Design, especially ‘Large scale structure’ part.

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

Sidebar

Related Questions

A) Book I’m learning from says that if we handle Login.Authenticate event, then we
Q1 Book suggests that before we register new SqlProfileProvider , we should remove any
The book User Stories Applied contains single page discussing Personas. The definition of persona
A book I was reading, on sql server 2008, mentions how you should not
The book Designing Embedded Hardware in the chapter 9.3. Old Faithful: RS-232C mentions that
Which book is worth buying, for your opinion? I'm generally familiar with multithreading concepts,
This is based on the example from the book: Pro WPF and Silverlight MVVM
The book X Power Tools has a chapter Display Specifications, where it states: Since
This book was written in the era of time sharing systems, procedural programming, and
the book which I study, to transition from C++ to Objective-C, places all the

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.