TC.Tier.Products.Net 1.0.0-alpha.3

This is a prerelease version of TC.Tier.Products.Net.
dotnet add package TC.Tier.Products.Net --version 1.0.0-alpha.3
                    
NuGet\Install-Package TC.Tier.Products.Net -Version 1.0.0-alpha.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="TC.Tier.Products.Net" Version="1.0.0-alpha.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TC.Tier.Products.Net" Version="1.0.0-alpha.3" />
                    
Directory.Packages.props
<PackageReference Include="TC.Tier.Products.Net" />
                    
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 TC.Tier.Products.Net --version 1.0.0-alpha.3
                    
#r "nuget: TC.Tier.Products.Net, 1.0.0-alpha.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.
#:package TC.Tier.Products.Net@1.0.0-alpha.3
                    
#: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=TC.Tier.Products.Net&version=1.0.0-alpha.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TC.Tier.Products.Net&version=1.0.0-alpha.3&prerelease
                    
Install as a Cake Tool

TC.Tier.Products.Net

TC.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 TC.Tier.Core.IO;
using TC.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(...)

依赖

  • TC.Tier.Core.Net(raft 引擎/传输三形态/装配)
  • TC.Tier.Products(TierWAL 存储)
  • System.IO.Pipelines

文档

状态

Beta——暂未发布 NuGet 包;磁盘持久化格式存在迭代变更可能,勿用于生产。

Product 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.

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-alpha.3 28 9/18/2026
1.0.0-alpha.2 34 9/18/2026
1.0.0-alpha.1 36 9/16/2026