-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orleans JournaledGrain sample #7029
base: main
Are you sure you want to change the base?
Conversation
@ReubenBond here is a draft of the sample. Still things I want to add, but would like to get input on how things are looking before I wonder off in a wrong direction. |
orleans/JournaledTodoList/JournaledTodoList.WebApp/Grains/TodoListRegistryGrain.cs
Show resolved
Hide resolved
builder.AddKeyedAzureTableClient("clustering"); | ||
builder.AddKeyedAzureBlobClient("grain-state"); | ||
builder.UseOrleans(siloBuilder => | ||
{ | ||
siloBuilder.AddLogStorageBasedLogConsistencyProviderAsDefault(); | ||
siloBuilder.AddStateStorageBasedLogConsistencyProvider(name: Constants.StateStorageProviderName); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this set up, the log consistency providers are using the grain state as storage, in this case, blob storage. When the log-based providers save state, does it just save the added/raised event(s), or does it save all in one go? That is, if there are 1000 events, will they all be serialized and save to blob storage or just the new events?
This sample aims to showcase different ways to use JournaledGrains.
Features:
Todo: