[Flow] DDD > best practice > searchQuery

Axel Wüstemann awu at qbus.de
Wed Nov 13 11:42:20 CET 2013


Hello,

what is the best way to impement a search functionality regarding to the 
principles of DDD?

I made a DTO which will hold the fields which can be included within the 
search query. This fields are related across the most available domain 
model objects.

Where to implement the query? The query needs to walk trough several 
database tables.

Is this a stand alone service object? Is it a repository because a 
repository has all inside to make queries against the database?

I even could try some kind of plugin mechanism with signal/slots where 
each domain repository could add its part to the query result, but this 
seems to me to much work to specify and to implement it.

If anybody has some interesting thoughts about it, let me know ;=)

Thanks
Axel


More information about the Flow mailing list