KernLab.Tier.Products.Net
1.0.0-beta.1
This is a prerelease version of KernLab.Tier.Products.Net.
dotnet add package KernLab.Tier.Products.Net --version 1.0.0-beta.1
NuGet\Install-Package KernLab.Tier.Products.Net -Version 1.0.0-beta.1
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="KernLab.Tier.Products.Net" Version="1.0.0-beta.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KernLab.Tier.Products.Net" Version="1.0.0-beta.1" />
<PackageReference Include="KernLab.Tier.Products.Net" />
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 KernLab.Tier.Products.Net --version 1.0.0-beta.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KernLab.Tier.Products.Net, 1.0.0-beta.1"
#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 KernLab.Tier.Products.Net@1.0.0-beta.1
#: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=KernLab.Tier.Products.Net&version=1.0.0-beta.1&prerelease
#tool nuget:?package=KernLab.Tier.Products.Net&version=1.0.0-beta.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
KernLab.Tier.Products.Net
KernLab.Tier 的 raft × TierWAL 官方产品节点——Core.Net 共识引擎与 Products 存储在产品层的汇合点:TierRaftNode 一个装配器成完整节点(TierWAL 持久化 + raft 共识 + 提交应用管道 + 多源快照分发/反熵 + 宿主调度)。
能力
- 一站装配:
TierRaftNodeBuilder三段式成节点——传输二选一(注入现成传输 ∥ 内建 TCP 组装),双供给/零供给 fail-fast - 存储适配:
TierWalRaftStore(IRaftStore × TierWAL)——帧格式知识唯一宿主,组提交/截断/快照语义单点翻译 - 多源与反熵:快照块化发布、多源并行拉取、leader 发起的对端轮转对账(Swarm 装配时启用)
- 宿主调度:日志增长阈值触发一体快照压缩 + 发布 + 反熵的公共循环;换届自动接线
- 稳定身份:
TierFsIdentityStore身份文件(原子保存 + CRC 校验,损坏 fail-fast) - 复制档组路由:
GroupReplicaRouter通用面——传输绑定 + 组分发 + 提案转发 + 状态封套四件事单点承载,副本类实现IGroupProposalHandler即挂载(域号分配表见 COORDINATION.md §6)
快速开始
using KernLab.Tier.Core.IO;
using KernLab.Tier.Core.Net.Channels;
var node = await TierRaftNodeBuilder.Create(id, TierFs.New("local:///data/raft"), config, myMachine)
.WithClusterTransport(
listen: new IPEndPoint(IPAddress.Any, 7001),
peers: peerEndpoints) // 全体成员(含自己)
.StartAsync();
await node.Raft.ReplicateAsync(command); // 复制完成档见 Core.Net raft 语义
嵌入式同进程(测试)用 .WithTransport(hub.Register(id)) 注入传输;既有集群加入用 .WithJoin(...)。
依赖
- KernLab.Tier.Core.Net(raft 引擎/传输三形态/装配)
- KernLab.Tier.Products(TierWAL 存储)
- System.IO.Pipelines
文档
- 使用指南:docs/raft-node.md(在线:docs.kernlab.dev/tier)
- 共识引擎语义:Core.Net 使用指南 net.md
- 组装层红线:COORDINATION.md
状态
Beta——暂未发布 NuGet 包;磁盘持久化格式存在迭代变更可能,勿用于生产。
| 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 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.
-
net8.0
- KernLab.Loom.Abstractions (>= 1.0.0-rc.9)
- KernLab.Tier.Core.Net (>= 1.0.0-beta.1)
- KernLab.Tier.Products (>= 1.0.0-beta.1)
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.0-beta.1 | 74 | 10/31/2026 |
| 1.0.0-alpha.17 | 71 | 10/21/2026 |
| 1.0.0-alpha.15 | 59 | 10/8/2026 |
| 1.0.0-alpha.14 | 99 | 9/30/2026 |
| 1.0.0-alpha.13 | 197 | 9/29/2026 |
| 1.0.0-alpha.12 | 107 | 9/27/2026 |
| 1.0.0-alpha.11 | 82 | 9/26/2026 |