So, we agreed that you are trying to create event streams in the DDD Aggregate Root and Aggregate arrays.
There is a common template in which each unit has its own flow. It has the name and identifier of the cumulative root, although part of the name is optional.
All operations on the entire set are represented by events, which are then written to this stream.
So, if you have an aggregated root MyNamespace.Orderthat has several objects or objects of a child value MyNamespace.OrderLine, all operations on strings are performed by accessing the aggregated root methods, and all events are recorded in one stream, so for an order with id 123 this will be:
Stream: MyName
- space.Order-123
- OrderPlaced
- OrderDeliveryAddressSet
- OrderLineAdded
- OrderLineAdded
- OrderLineRemoved
- OrderConfirmed
- OrderETASet
- OrderPaid
- OrderDispatched
- OrderDelivered
, , , . , .
, . , .
concurrency. , . , , . , concurrency, - , , .
"" , . , , . , .