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

This is a prerelease version of TC.Tier.Core.Net.
dotnet add package TC.Tier.Core.Net --version 1.0.0-alpha.3
                    
NuGet\Install-Package TC.Tier.Core.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.Core.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.Core.Net" Version="1.0.0-alpha.3" />
                    
Directory.Packages.props
<PackageReference Include="TC.Tier.Core.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.Core.Net --version 1.0.0-alpha.3
                    
#r "nuget: TC.Tier.Core.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.Core.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.Core.Net&version=1.0.0-alpha.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TC.Tier.Core.Net&version=1.0.0-alpha.3&prerelease
                    
Install as a Cake Tool

TC.Tier.Core.Net

TC.Tier 的网络与共识层——节点身份 + 统一线协议 + 介质无关传输三形态 + 共识/对等机制全家(raft / HyParView / Swarm),三段式装配成节点。零产品知识(永不依赖 TC.Tier.Products——编译期依赖锁封堵)。

能力

  • 线协议(Wire):统一帧(16B 帧头双 CRC32C,[BinaryLayout] 生成 codec)+ 握手协商(集群标签/安全档/特征位)
  • 传输三形态(Channels):数据报(尽力送达)× 请求回调(CorrId 关联 + 超时 + 可选 at-least-once)× 流式(可靠有序 + 背压,GB 级 O(单帧))——IProtocolTransport 介质无关消费面
  • 传输介质(Transport):TCP 长连接(三步握手/双优先写队列/保活)∥ InProcess 枢纽(同构基准)∥ UDP 数据报承载——故障注入面(延迟/分区/丢包/乱序)介质等价
  • raft 共识(Raft):选举/复制/提交/成员变更/ReadIndex 线性读;单写者事件循环 + per-peer 复制链 + apply 管道;快照安装(单源流式 ∥ 多源 swarm)
  • P2P 会员(P2P):HyParView partial view 维护 + Phi Accrual 故障检测 + gossip 广播
  • 多源块同步(Swarm):manifest 协商 + K 并行拉块 + 错块拦截 + 反熵对账——快照 swarm 的协议族复用件
  • 安全(Security):Plaintext ∥ KeyPair(签名+ECDH+AEAD,推荐缺省)∥ MutualTls——防降级 fail-closed
  • 装配(Hosting)ClusterBuilder(集群成员)/ NetClientBuilder(直连客户端)→ StartAsync 一次成型 NodeEndpoint

快速开始

await using var endpoint = await ClusterBuilder.Create(nodeId)
    .ClusterTag(0x74696572)                          // 错集群握手期拒绝
    .Listen("0.0.0.0", 9400)
    .Peers(peers)                                    // NodeId → 端点
    .WithMechanism(myMechanism)                      // 机制显式 opt-in
    .StartAsync(ct);

await endpoint.SendRequestAsync(target, protocolId, payload,
    new RequestOptions { Timeout = TimeSpan.FromSeconds(2) }, ct);

依赖

  • TC.Tier.Core(执行原语/日志/可观测——不自建)

文档

状态

Beta—— raft 语义与线协议已按场景矩阵验证;生产部署请以产品层(TC.Tier.Products.Net)完整故障注入验证为准。

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 (1)

Showing the top 1 NuGet packages that depend on TC.Tier.Core.Net:

Package Downloads
TC.Tier.Products.Net

TC.Tier 官方产品网络面——TierQueue/TierKV 复制档与组路由等网络服务形态(依赖 TC.Tier.Products + TC.Tier.Core.Net 传输底座)。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.3 0 9/18/2026
1.0.0-alpha.2 4 9/18/2026
1.0.0-alpha.1 38 9/16/2026