https://github.com/sjefvanleeuwen/orleans-morstead-storage
Morstead Storage Providers for Microsoft Orleans using LiteDB
https://github.com/sjefvanleeuwen/orleans-morstead-storage
litedb orleans persistence storageprovider
Last synced: 3 months ago
JSON representation
Morstead Storage Providers for Microsoft Orleans using LiteDB
- Host: GitHub
- URL: https://github.com/sjefvanleeuwen/orleans-morstead-storage
- Owner: sjefvanleeuwen
- License: mit
- Created: 2020-06-19T18:45:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T16:40:14.000Z (over 2 years ago)
- Last Synced: 2024-10-05T08:41:07.331Z (about 1 year ago)
- Topics: litedb, orleans, persistence, storageprovider
- Language: C#
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Morstead Orleans Storage Provider

[](https://www.nuget.org/packages/Orleans.Persistence.Morstead/)
## What is it?
An embedded persistent storage provider for Microsoft Orleans for development purposes. It is based on LiteDB. Currently targeted to Developers that seek simple persistent storage as an 'in place' replacement for volatile memory storage that is shipped with Orleans.
## Status
The current MVP provides the following:
**Grain Persistence**
* ReadStateAsync
* WriteStateAsync
* ~~ClearStateAsync~~ (soon)The next items that will be worked on in the roadmap (ordered by priority):
* Reminders storage provider
* Cluster storage providerItems that might be worked on in the future but not on the roadmap:
* Transactions
* Stream providersThis project is open to pull requests.
## Setup
The setup comparable to other orleans storage providers and is build using .NET Standard 2.0.3
### Install nuget package
```
dotnet add package Orleans.Persistence.Morstead --version 0.0.3-alpha
```
or visit the nuget for other options on: https://www.nuget.org/packages/Orleans.Persistence.Morstead### Adding the provider to your project
configure using:
```csharp
public void Configure(ISiloBuilder siloBuilder)
{
siloBuilder
.AddMorsteadGrainStorage(name: "unit-test");
}
```## Notes
The storage model and configuration options might change in next releases.