Sekiban.Dcb.BlobStorage.AzureStorage 1.0.2-preview08

This is a prerelease version of Sekiban.Dcb.BlobStorage.AzureStorage.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Sekiban.Dcb.BlobStorage.AzureStorage --version 1.0.2-preview08
                    
NuGet\Install-Package Sekiban.Dcb.BlobStorage.AzureStorage -Version 1.0.2-preview08
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sekiban.Dcb.BlobStorage.AzureStorage" Version="1.0.2-preview08" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sekiban.Dcb.BlobStorage.AzureStorage" Version="1.0.2-preview08" />
                    
Directory.Packages.props
<PackageReference Include="Sekiban.Dcb.BlobStorage.AzureStorage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sekiban.Dcb.BlobStorage.AzureStorage --version 1.0.2-preview08
                    
#r "nuget: Sekiban.Dcb.BlobStorage.AzureStorage, 1.0.2-preview08"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sekiban.Dcb.BlobStorage.AzureStorage@1.0.2-preview08
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sekiban.Dcb.BlobStorage.AzureStorage&version=1.0.2-preview08&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sekiban.Dcb.BlobStorage.AzureStorage&version=1.0.2-preview08&prerelease
                    
Install as a Cake Tool

Sekiban.Dcb.BlobStorage.AzureStorage

Azure Blob Storage integration for Sekiban Dynamic Consistency Boundary (DCB) framework.

Overview

This package provides Azure Blob Storage-based snapshot offloading for Sekiban DCB MultiProjection. It enables efficient storage of large projection state snapshots in Azure Blob Storage, reducing memory pressure and improving scalability for projections with significant state.

Features

  • Binary Snapshot Storage: Efficiently stores projection snapshots as binary data in Azure Blob Storage
  • Automatic Container Management: Automatically creates blob containers if they don't exist
  • Flexible Configuration: Supports both connection string and BlobServiceClient-based initialization
  • Prefix Support: Organize snapshots with custom prefixes for multi-tenant scenarios

Installation

dotnet add package Sekiban.Dcb.BlobStorage.AzureStorage --version 1.0.2-preview03

Usage

Basic Setup with Connection String

services.AddSingleton<IBlobStorageSnapshotAccessor>(sp =>
{
    var connectionString = configuration["AzureStorage:ConnectionString"];
    return new AzureBlobStorageSnapshotAccessor(
        connectionString,
        "multiprojection-snapshots", // Container name
        "production"                  // Optional prefix
    );
});
services.AddSingleton<IBlobStorageSnapshotAccessor>(sp =>
{
    var blobServiceClient = sp.GetRequiredService<BlobServiceClient>();
    return new AzureBlobStorageSnapshotAccessor(
        blobServiceClient,
        "multiprojection-snapshots"  // Container name
    );
});

With Aspire and Keyed Services

services.AddSingleton<IBlobStorageSnapshotAccessor>(sp =>
{
    // Use Aspire-configured BlobServiceClient
    var blobServiceClient = sp.GetRequiredKeyedService<BlobServiceClient>("MultiProjectionOffload");
    return new AzureBlobStorageSnapshotAccessor(
        blobServiceClient,
        "multiprojection-snapshots"
    );
});

Integration with Sekiban DCB Orleans

This package is designed to work seamlessly with Sekiban.Dcb.Orleans for snapshot offloading in MultiProjection grains:

// In Orleans silo configuration
siloBuilder.ConfigureServices(services =>
{
    // Register the Azure Blob Storage snapshot accessor
    services.AddSingleton<IBlobStorageSnapshotAccessor>(sp =>
    {
        var blobServiceClient = sp.GetRequiredKeyedService<BlobServiceClient>("MultiProjectionOffload");
        return new AzureBlobStorageSnapshotAccessor(blobServiceClient, "snapshots");
    });
});

Configuration Options

Container Names

  • Default: multiprojection-snapshots
  • Customize based on your application needs
  • Containers are created automatically if they don't exist

Prefixes

  • Use prefixes to organize snapshots by environment, tenant, or feature
  • Example: production/, tenant-123/, feature-x/

Requirements

  • .NET 9.0 or later
  • Azure Storage Account (or Azurite for local development)
  • Sekiban.Dcb package

Dependencies

  • Azure.Storage.Blobs (12.22.2)
  • Sekiban.Dcb (1.0.2-preview03)

License

Apache-2.0

Support

For issues, questions, or contributions, please visit: https://github.com/J-Tech-Japan/Sekiban

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2-preview10 0 9/22/2025
1.0.2-preview09 0 9/22/2025
1.0.2-preview08 295 9/15/2025
1.0.2-preview07 112 9/13/2025
1.0.2-preview06 52 9/13/2025
1.0.2-preview05 186 9/5/2025
1.0.2-preview04 115 9/5/2025