Replies: 4 comments
-
What you have looks good to me, @horacioj. You have kept the previous methods without changing their signature, and presumably only changing their behavior in a backwards compatible manner (so v1 clients will still receive the expected result). |
Beta Was this translation helpful? Give feedback.
-
Thank you, @ReubenBond ! |
Beta Was this translation helpful? Give feedback.
-
I have a doubt, related to this. Given the way I've implemented the new version of the grain, is the following safe & ok? //NOTE: https://learn.microsoft.com/en-us/dotnet/orleans/grains/grain-versioning/grain-versioning
silo.Configure<GrainVersioningOptions>(options =>
{
options.DefaultCompatibilityStrategy = nameof(BackwardCompatible);
options.DefaultVersionSelectorStrategy = nameof(LatestVersion);
}); I'm 99% sure |
Beta Was this translation helpful? Give feedback.
-
Now I think it should be What makes me doubt is "there is a 20% chance that the new activation will be a V2 and an 80% chance that it will be a V1" at https://learn.microsoft.com/en-us/dotnet/orleans/grains/grain-versioning/version-selector-strategy |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've read about Grain interface versioning but I still have some doubts. If someone can validate if I'm doing things the right way, it would be very helpful.
Let's say I have a grain interface like this (already in production):
And an implementation like this (already in production):
The business requirements changed, and now the interface (and its implementation) must change.
This is how I'm implementing the change, but I'm not sure if it is right.
Even if it is 'rightish', it doesn't feel right because I don't like having to create a new method name and replace every call to point to the new name.
The updated interface:
The updated implementation:
Am I doing things right? Will the new implementation not break production once it is deployed?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions