A way to CQRS and DDD
Recently, I'm trying to make a approach to DDD with CQRS, Event Sourcing, Domain Isolation, Domain Reporting, Messaging, Storage, etc.
some of the fetched knowledge of mine can be looked up below, I should be able to handle all these small scopes perfectly after I finished analyzing this system.
一. some basic concepts
1.ServiceLocator:
ReportDatabase, CommandBus
2. CommandBus, QueryFacade
cmdbus->send->cmd
3. DbToReportTo:
4.Events:
Event aggregation: should have a GUID
Event : should have an ID, and an aggregateID as well, and also Event Versioning.
5. EventHandlers:
Handler: should be able to handle generic type Event
6. A CQRS approach object flow diagram.
7. DDD: As to DDD,
Since there are different business domains, domain modeling methods vary.
But there is indeed a common Pattern, the Order-> Order line item pattern, i.e. the item and subitem pattern.
Any system is used to handle things, like the commerce models.
A reference link: http://www.codeproject.com/Articles/555855/Introduction-to-CQRS