Do you guys use primitives in commands or value objects? Do you treat commands as DTOs? Do you treat value objects as DTOs? Or do you keep all value objects hidden from the command-issuer?
Implicit conversion operator (contracts as partial classes) to keep the typing down to get a value object.
Only if you always know where your ProtoBuf specs are.
If you want to keep events around for a long time and want to go back to them, any risk of having the spec separated from the data or having the spec diverge from the data puts the entire store at risk of becoming illegible. Self-contained data structures are far better for this. If you want schematized and self-contained, consider Avro containers. This consideration here is why we use Avro for Event Hubs Capture archival.
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dddcqrs+u...@googlegroups.com.
Visit this group at
https://groups.google.com/group/dddcqrs.
For more options, visit
https://groups.google.com/d/optout.