Orleans.Sagas icon indicating copy to clipboard operation
Orleans.Sagas copied to clipboard

Support named storage provider

Open cbgrasshopper opened this issue 3 years ago • 2 comments

Currently, Saga state storage uses the default grain storage provider configured for Orleans. Using a named storage provider would allow for separate storage configuration, including potentially TTL configuration, which might help with issues like Infinite growth of state after saga completions #37. (Not sure if this could be done without being a breaking change.)

cbgrasshopper avatar Aug 06 '21 15:08 cbgrasshopper

Would the preference be to add a custom [StorageProvider] attribute to SagaGrain and SagaCancellationGrain?

The trade off of this would be user would have to explicitly define the storage provider for that id.

creyke avatar Aug 09 '21 08:08 creyke

Yes, that is what I was thinking.

cbgrasshopper avatar Aug 16 '21 06:08 cbgrasshopper