-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
An opinionated, simplified and uniform Cloud Native actors' library that integrates with Microsoft Orleans. | ||
|
||
[![License](https://img.shields.io/github/license/devlooped/CloudActors.svg?color=blue)](https://github.com/devlooped/CloudActors/blob/main/license.txt) | ||
[![GitHub](https://img.shields.io/badge/-source-181717.svg?logo=GitHub)](https://github.com/devlooped/nugetizer) | ||
|
||
<!-- include ../../readme.md#content --> | ||
<!-- include ../../readme.md#sponsors --> | ||
|
||
<!-- Exclude from auto-expansion by devlooped/actions-include GH action --> | ||
<!-- exclude --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Streamstone storage provider for Orleans grain persistence, | ||
supporting Cloud Actors on Azure Table Storage. | ||
|
||
## Features | ||
|
||
* Supports plain CLR objects as grain state | ||
* Supports event sourced actors | ||
* Supports automatic snapshots for faster state reading | ||
|
||
See [Streamstone](https://github.com/yevhen/Streamstone) for more details. | ||
|
||
## Usage | ||
|
||
```csharp | ||
var builder = WebApplication.Create(args); | ||
|
||
// other config, specially Orleans and Cloud Actors | ||
// 👇 register provider as default for all grains/actors | ||
builder.Services.AddSingletonNamedService<IGrainStorage, StreamstoneStorage>(ProviderConstants.DEFAULT_STORAGE_PROVIDER_NAME); | ||
|
||
// 👇 register provider with a specific name, alternatively | ||
builder.Services.AddSingletonNamedService<IGrainStorage, StreamstoneStorage>("streamstone"); | ||
``` | ||
|
||
If the storage provider is registered with a specific name, actors can then | ||
specify the name of the provider to use: | ||
|
||
```csharp | ||
[Actor(nameof(Account), "streamstone")] | ||
public partial class Account : IEventSourced | ||
``` | ||
|
||
<!-- include ../../readme.md#sponsors --> | ||
|
||
<!-- Exclude from auto-expansion by devlooped/actions-include GH action --> | ||
<!-- exclude --> |