MeshWeaver.Hosting.Orleans 2.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package MeshWeaver.Hosting.Orleans --version 2.0.3
                    
NuGet\Install-Package MeshWeaver.Hosting.Orleans -Version 2.0.3
                    
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="MeshWeaver.Hosting.Orleans" Version="2.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Hosting.Orleans" Version="2.0.3" />
                    
Directory.Packages.props
<PackageReference Include="MeshWeaver.Hosting.Orleans" />
                    
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 MeshWeaver.Hosting.Orleans --version 2.0.3
                    
#r "nuget: MeshWeaver.Hosting.Orleans, 2.0.3"
                    
#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.
#addin nuget:?package=MeshWeaver.Hosting.Orleans&version=2.0.3
                    
Install MeshWeaver.Hosting.Orleans as a Cake Addin
#tool nuget:?package=MeshWeaver.Hosting.Orleans&version=2.0.3
                    
Install MeshWeaver.Hosting.Orleans as a Cake Tool

MeshWeaver.Hosting.Orleans

Overview

MeshWeaver.Hosting.Orleans provides a distributed hosting model for MeshWeaver using Microsoft Orleans. Each message hub is represented as a virtual actor (grain) in the Orleans cluster, enabling automatic distribution, scalability, and fault tolerance.

How It Works

  • Each message hub is mapped to an Orleans grain
  • Messages are dispatched through Orleans silos
  • Grains are automatically distributed across the cluster
  • Virtual actor model ensures hubs are always addressable
  • Orleans handles activation/deactivation and placement of hubs

Usage

var builder = WebApplication.CreateBuilder(args);

// Configure Orleans cluster
builder.Host.UseOrleans(orleans =>
{
    orleans.UseLocalhostClustering();
    // Configure other Orleans options
});

// Configure MeshWeaver with Orleans hosting
builder.UseMeshWeaver(
    new MeshAddress(),
    config => config
        .ConfigureWebPortal()
        .ConfigurePortalMesh()
        .UseOrleansMesh()
        .ConfigureServices(services => services.AddArticles())
);

var app = builder.Build();
app.StartPortalApplication();

Features

  • Distributed message processing
  • Automatic scalability through Orleans clustering
  • Fault tolerance and automatic recovery
  • Virtual actor model for message hubs
  • Transparent hub activation/deactivation
  • Location transparency for message routing

Benefits

  • Scalability: Automatically scales across multiple servers
  • Reliability: Built-in fault tolerance through Orleans
  • Persistence: Optional state persistence for hubs
  • Distribution: Automatic workload distribution
  • Recovery: Automatic failure recovery

Integration

See Also

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. 
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
2.1.0 121 4/6/2025
2.0.3 451 3/24/2025
2.0.2 430 3/24/2025
2.0.1 81 3/21/2025
2.0.0 116 3/20/2025
2.0.0-preview3 56 2/28/2025
2.0.0-Preview2 61 2/10/2025
2.0.0-preview1 60 1/6/2025