OrleansTemplates
OrleansTemplates copied to clipboard
Single Writer Multiple Readers replicas id issue
When a replica grain is created, the id of the replica is constructed as follows: grainId + "" + "replicaNumber" (e.g. "MyGrain_1"). To determine the id of the original grain, the replica splits it's own id using "" separator and takes the first part. This works as long as the original grain id does not contain "_" but will not otherwise.
This is obviously problematic and should be improved.