CQRS client command management -
CQRS client command management -
i'm building new project using cqrs, it's 3 tier application , it's expected clients state synchronized. server receive commands , callback events clients.
currently, model has several sub model can added/removed/updated, each of has it's own command. events field specific i.e.
updateitemcommand createsubitemcommand removesubitemcommand updatesubitemcommand ... itemfieldaupdatedevent subitemfieldaupdatedevent subitemfieldbupdatedevent ...so here's interrogation, client current state of model, user edit local model, click save button , bug. should i
compare original state of model (updated received events) , edited state of model generate set of commands (on every received events it's required identify fields has been updated , notify user if edited field has changed), create commands user editing model doing , undoing edit (that hard manage), ...basically don't know strategy should apply generate commands!
is there illustration out there, i've google around found noting on subject.
thanks,
dominik
i recommend read task-based ui.
cqrs
Comments
Post a Comment