Hi,
I was wondering what solutions people have come up with to route commands that are protobuf types to the AR. The CommandTargetResolver gives you the command payload, and from there on you’ld have to extract for each command the aggregate id and version that this command should be routed to. So far we have not found a really elegant solution for this, other than trying to structure the syntax and naming of the each command so we can find these fields more easily via the protobuf metadata api. Using a protoc plugin one would probably be able to annotate the protobuf types with @TargetAggregateIdentifier but that’s a bit out of our competence area (let alone if it would actually be a good idea or not).
Thanks,
Jorg