where to put data objects that are not part of the domain?

94 views
Skip to first unread message

Jeff

unread,
Jun 15, 2016, 7:00:09 PM6/15/16
to DDD/CQRS
i have a domain for our ecommerce site.  I also have a search engine where i  have to create a few "data containers" but they are only used for search one is for input and one is for output. It does not seem this should be part of the domain model?  Is there a separate area i should put these in?  To be more specific I have to create a struct for adding new items to the search, which has has some of their required meta data fields, and then the fields we will search against. The results are a mix of fields from 2 different aggregate roots and only used in the search results page and that's it.

Thanks.

Manuel Rascioni

unread,
Jun 17, 2016, 2:04:02 PM6/17/16
to DDD/CQRS
"which has has some of their required meta data fields, and then the fields we will search against. The results are a mix of fields from 2 different aggregate roots and only used in the search results page and that's it" this sounds much like another bounded context of your application...
Reply all
Reply to author
Forward
0 new messages