Hey,
Apologies if this question isn't well formed but here it is.
I'm looking at a system that would be suitable for the whole CQRS/DDD/ES patterns but there is still a dependency for some outside systems to call in with wholesale updates to aggregates.
For example we have Foo and a series of decisions can be made against foo. To suspend it, to authorise it, to modify its name it in some way etc.
However we still have an external system that is outside of our control that needs to PUT in a full Foo update. I'm not sure how to handle this. At the moment I've got a couple of ideas:
- Maybe interigate the PUT request and decompose it into a series of commands. But this feels wrong
- Have a command that maps one to one with the PUT request and just push it through. But this feels a little funky too.
I was wondering if you folk have any thoughts on this?
Thanks in advance