OrleansContrib / Orleans.Sagas

A distributed saga implementation for Orleans
MIT License
150 stars 28 forks source link

Support named storage provider #50

Open cbgrasshopper opened 3 years ago

cbgrasshopper commented 3 years ago

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.)

creyke commented 3 years ago

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.

cbgrasshopper commented 3 years ago

Yes, that is what I was thinking.