Microsoft.Orleans.Persistence.DynamoDB
10.0.1
Prefix Reserved
dotnet add package Microsoft.Orleans.Persistence.DynamoDB --version 10.0.1
NuGet\Install-Package Microsoft.Orleans.Persistence.DynamoDB -Version 10.0.1
<PackageReference Include="Microsoft.Orleans.Persistence.DynamoDB" Version="10.0.1" />
<PackageVersion Include="Microsoft.Orleans.Persistence.DynamoDB" Version="10.0.1" />
<PackageReference Include="Microsoft.Orleans.Persistence.DynamoDB" />
paket add Microsoft.Orleans.Persistence.DynamoDB --version 10.0.1
#r "nuget: Microsoft.Orleans.Persistence.DynamoDB, 10.0.1"
#:package Microsoft.Orleans.Persistence.DynamoDB@10.0.1
#addin nuget:?package=Microsoft.Orleans.Persistence.DynamoDB&version=10.0.1
#tool nuget:?package=Microsoft.Orleans.Persistence.DynamoDB&version=10.0.1
Microsoft Orleans Persistence for DynamoDB
Introduction
Microsoft Orleans Persistence for DynamoDB provides grain persistence for Microsoft Orleans using Amazon's DynamoDB. This allows your grains to persist their state in DynamoDB and reload it when they are reactivated.
Getting Started
To use this package, install it via NuGet:
dotnet add package Microsoft.Orleans.Persistence.DynamoDB
Example - Configuring DynamoDB Persistence
using Microsoft.Extensions.Hosting;
using Orleans.Configuration;
using Orleans.Hosting;
var builder = Host.CreateApplicationBuilder(args)
.UseOrleans(siloBuilder =>
{
siloBuilder
.UseLocalhostClustering()
// Configure DynamoDB as grain storage
.AddDynamoDBGrainStorage(
name: "dynamoStore",
configureOptions: options =>
{
options.AccessKey = "YOUR_AWS_ACCESS_KEY";
options.SecretKey = "YOUR_AWS_SECRET_KEY";
options.Region = "us-east-1";
options.TableName = "OrleansGrainState";
options.CreateIfNotExists = true;
});
});
// Run the host
await builder.RunAsync();
Example - Using Grain Storage in a Grain
// Define grain state class
public class MyGrainState
{
public string Data { get; set; }
public int Version { get; set; }
}
// Grain implementation that uses the DynamoDB storage
public class MyGrain : Grain, IMyGrain, IGrainWithStringKey
{
private readonly IPersistentState<MyGrainState> _state;
public MyGrain([PersistentState("state", "dynamoStore")] IPersistentState<MyGrainState> state)
{
_state = state;
}
public async Task SetData(string data)
{
_state.State.Data = data;
_state.State.Version++;
await _state.WriteStateAsync();
}
public Task<string> GetData()
{
return Task.FromResult(_state.State.Data);
}
}
Documentation
For more comprehensive documentation, please refer to:
Feedback & Contributing
- If you have any issues or would like to provide feedback, please open an issue on GitHub
- Join our community on Discord
- Follow the @msftorleans Twitter account for Orleans announcements
- Contributions are welcome! Please review our contribution guidelines
- This project is licensed under the MIT license
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AWSSDK.DynamoDBv2 (>= 4.0.9.6)
- Microsoft.AspNetCore.Connections.Abstractions (>= 10.0.0)
- Microsoft.CodeAnalysis.Analyzers (>= 3.11.0)
- Microsoft.CodeAnalysis.Common (>= 5.0.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 5.0.0)
- Microsoft.Extensions.Configuration (>= 10.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.Configuration.Json (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.DependencyModel (>= 10.0.0)
- Microsoft.Extensions.Hosting (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Console (>= 10.0.0)
- Microsoft.Extensions.Logging.Debug (>= 10.0.0)
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.0)
- Microsoft.Orleans.Analyzers (>= 10.0.1)
- Microsoft.Orleans.CodeGenerator (>= 10.0.1)
- Microsoft.Orleans.Runtime (>= 10.0.1)
- Newtonsoft.Json (>= 13.0.4)
- System.IO.Hashing (>= 10.0.0)
- System.Memory.Data (>= 10.0.0)
-
net8.0
- AWSSDK.DynamoDBv2 (>= 4.0.9.6)
- Microsoft.AspNetCore.Connections.Abstractions (>= 8.0.11)
- Microsoft.CodeAnalysis.Analyzers (>= 3.11.0)
- Microsoft.CodeAnalysis.Common (>= 4.5.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 4.5.0)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.DependencyModel (>= 8.0.2)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Logging.Console (>= 8.0.1)
- Microsoft.Extensions.Logging.Debug (>= 8.0.1)
- Microsoft.Extensions.ObjectPool (>= 8.0.22)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Orleans.Analyzers (>= 10.0.1)
- Microsoft.Orleans.CodeGenerator (>= 10.0.1)
- Microsoft.Orleans.Runtime (>= 10.0.1)
- Newtonsoft.Json (>= 13.0.4)
- System.IO.Hashing (>= 10.0.0)
- System.IO.Pipelines (>= 8.0.0)
- System.Memory.Data (>= 8.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Microsoft.Orleans.Persistence.DynamoDB:
| Package | Downloads |
|---|---|
|
Microsoft.Orleans.OrleansAWSUtils
Library of utility types for Amazon AWS of Microsoft Orleans. |
|
|
Orleans.Partitioned.Transactional.DynamoDB
Transactional storage provider for DynamoDB in the Orleans framework, with support for partitioned data structures. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Microsoft.Orleans.Persistence.DynamoDB:
| Repository | Stars |
|---|---|
|
PiotrJustyna/road-to-orleans
This repository illustrates the road to orleans with practical, real-life examples. From most basic, to more advanced techniques.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.1 | 10,196 | 2/7/2026 |
| 10.0.0 | 3,501 | 1/20/2026 |
| 10.0.0-rc.2 | 324 | 12/31/2025 |
| 9.2.1 | 23,570 | 7/16/2025 |
| 9.2.0 | 1,059 | 7/14/2025 |
| 9.2.0-preview3 | 369 | 6/10/2025 |
| 9.2.0-preview2 | 237 | 6/4/2025 |
| 9.2.0-preview1 | 193 | 4/4/2025 |
| 9.1.2 | 53,863 | 2/13/2025 |
| 9.0.1 | 34,243 | 11/23/2024 |
| 9.0.0 | 1,201 | 11/14/2024 |
| 8.2.0 | 33,890 | 7/12/2024 |
| 7.2.7 | 271 | 10/15/2024 |
| 3.8.0 | 1,063 | 5/6/2025 |
| 3.8.0-preview5 | 291 | 5/12/2025 |
| 3.8.0-preview3 | 274 | 4/8/2025 |
| 3.8.0-preview2 | 153 | 4/4/2025 |
| 3.8.0-preview1 | 265 | 3/31/2025 |