OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server
2.0.3-preview.300
Prefix Reserved
dotnet add package OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server --version 2.0.3-preview.300
NuGet\Install-Package OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server -Version 2.0.3-preview.300
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server" Version="2.0.3-preview.300" />
<PackageVersion Include="OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server" Version="2.0.3-preview.300" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server" />
paket add OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server --version 2.0.3-preview.300
#r "nuget: OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server, 2.0.3-preview.300"
#:package OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server@2.0.3-preview.300
#addin nuget:?package=OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server&version=2.0.3-preview.300&prerelease
#tool nuget:?package=OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server&version=2.0.3-preview.300&prerelease
OPC UA .NET Standard — Distributed / High-Availability Server
OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server adds the optional distributed building blocks that let an OPCFoundation.NetStandard.Opc.Ua.Server server run as a redundant replica set (active/passive or active/active) while sharing its address space and — optionally — its session state across replicas.
Overview
The core server library stays a self-contained, single-instance server. This package layers the distributed concerns on top through dependency injection so the in-memory, single-instance path is unchanged when the package is not used:
- A shared, integrity-protected key/value backend (
ISharedKeyValueStore) that mirrors node additions, removals, references, and values across replicas. - Leader election (
ILeaderElection) for the shared-read / leader-write redundancy model, surfaced to clients through the standard OPC UAServiceLeveland redundancy nodes. - Opt-in mirrors for HotAndMirrored/Transparent failover: encrypted session
state with single-use nonce validation, subscription definitions,
retransmission queues for
Republish, and best-effort continuation points.UseReplicatedEventReportingorders and replays shared occurrences before a replica advertises readiness. The application supplies event data and the policy for mirrored condition methods.
Getting started
Wire the distributed address space and (optionally) shared sessions through the fluent DI surface:
services.AddOpcUa()
.AddServer(...)
.UseReplicaNodeIdentity("replica-set", ["urn:example:model", "urn:example:instances"])
.UseDistributedAddressSpace(distributed =>
{
distributed.KeyValueStoreFactory = _ => new InMemorySharedKeyValueStore();
})
.UseDistributedSessions();
The single-instance defaults remain in effect until a shared store is supplied, so the same server binary runs stand-alone or as part of a replica set.
Replica-set address spaces require UseReplicaNodeIdentity with the same ordered
namespace list and assignment mode on every replica. Shared slots start at index
2; ApplicationUri and built-in diagnostics remain local. The standard factory
derives identical wire NodeIds, and hydration preserves supplied root/child IDs.
Enable writerAssignedIds only for active/passive writer allocations; independent
active/active entities need stable keys or explicit IDs. Protected store contracts
and pre-merge gossip descriptors reject incompatible replicas. See
Replica-consistent NodeIds
for direct construction, hybrid provisioning and legacy-state restrictions.
Distributed address-space replication follows each node manager's declared non-standard NamespaceUris; namespace-zero infrastructure remains local to each replica. Node managers that use a custom ownership partition and return null for NamespaceUris must implement ILocalAddressSpaceOwnership with a stable PartitionId and an OwnsNode(NodeId) predicate.
Managed cross-process writers require a strong store with guarded writes and a
writer election that exposes its committed grant on that store. The shared-store
lease election supports this with a freshness-protected view whose authority
implements IDeadlineGuardedSharedKeyValueStore. The authority must compare
the grant and its expiry in the same commit as the mutation. A separate
sequence coordinator or a leadership predicate cannot do this. Process-local
configurations do not require a distributed grant.
For a strong Raft deployment, configure UseDistributedAddressSpace with
UseLeaderElection = true, a unique NodeId, and the same complete
LeaseMemberIds on every replica. This explicitly selects the protected
publication lease over a previously registered Raft or Kubernetes election;
Raft still provides the storage consensus. Do not register another server
writer election after selecting the publication lease.
The guard covers each committed topology, value, delta, sequence and metadata mutation. It does not roll back changes committed before the grant changed or turn the separate publications into a multi-key transaction. An unfinished publication reservation blocks writer takeover until reconciled. Managed value-cache writes use the owning partition's verified writer; an unbound registry handle cannot write topology or publication metadata.
Authoritative bootstrap and compacted snapshots require strongly consistent state reads. CRDT payloads use non-destructive hydration and retained deltas: missing rows do not imply deletion or an empty store. Corrupt records cannot justify cleanup, and unfinished publication reservations prevent snapshot/log compaction until reconciled. See the High Availability guide for these consistency and recovery requirements.
Target frameworks
net48, net10.0, net11.0.
Additional documentation
See the High Availability guide for the OPC UA redundancy mapping and the Kubernetes deployment guide for running the server as a replica set.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. net11.0 is compatible. |
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- BitFaster.Caching (>= 2.6.1)
- BouncyCastle.Cryptography (>= 2.7.0)
- Crdt (>= 1.2.3)
- Crdt.Transport (>= 1.2.3)
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.Bcl.TimeProvider (>= 11.0.0)
- Microsoft.Extensions.Compliance.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Configuration (>= 11.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0)
- Microsoft.Extensions.DependencyInjection (>= 11.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Diagnostics (>= 11.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Http (>= 11.0.0)
- Microsoft.Extensions.Logging (>= 11.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Options (>= 11.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- Microsoft.Extensions.Telemetry (>= 11.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 11.0.0)
- OPCFoundation.NetStandard.Opc.Ua.Redundancy (>= 2.0.3-preview.300)
- OPCFoundation.NetStandard.Opc.Ua.Server (>= 2.0.3)
- RaftCs (>= 1.1.7)
- RaftCs.Transport (>= 1.1.7)
- System.Buffers (>= 4.6.1)
- System.Collections.Immutable (>= 9.0.0)
- System.Diagnostics.DiagnosticSource (>= 11.0.0)
- System.Formats.Asn1 (>= 11.0.0)
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.Text.Json (>= 11.0.0)
- System.Threading.Channels (>= 11.0.0)
- System.Threading.RateLimiting (>= 11.0.0)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
net10.0
- BitFaster.Caching (>= 2.6.1)
- Crdt (>= 1.2.3)
- Crdt.Transport (>= 1.2.3)
- Microsoft.Bcl.TimeProvider (>= 11.0.0)
- Microsoft.Extensions.Compliance.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Configuration (>= 11.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 11.0.0)
- Microsoft.Extensions.DependencyInjection (>= 11.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Diagnostics (>= 11.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Http (>= 11.0.0)
- Microsoft.Extensions.Logging (>= 11.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Options (>= 11.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- Microsoft.Extensions.Telemetry (>= 11.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 11.0.0)
- OPCFoundation.NetStandard.Opc.Ua.Redundancy (>= 2.0.3-preview.300)
- OPCFoundation.NetStandard.Opc.Ua.Server (>= 2.0.3)
- RaftCs (>= 1.1.7)
- RaftCs.Transport (>= 1.1.7)
- System.Diagnostics.DiagnosticSource (>= 11.0.0)
- System.Formats.Asn1 (>= 11.0.0)
- System.Text.Json (>= 11.0.0)
- System.Threading.Channels (>= 11.0.0)
- System.Threading.RateLimiting (>= 11.0.0)
-
net11.0
- BitFaster.Caching (>= 2.6.1)
- Crdt (>= 1.2.3)
- Crdt.Transport (>= 1.2.3)
- Microsoft.Bcl.TimeProvider (>= 11.0.0)
- Microsoft.Extensions.Compliance.Abstractions (>= 11.0.0)
- Microsoft.Extensions.Configuration (>= 11.0.0)
- Microsoft.Extensions.DependencyInjection (>= 11.0.0)
- Microsoft.Extensions.Diagnostics (>= 11.0.0)
- Microsoft.Extensions.Http (>= 11.0.0)
- Microsoft.Extensions.Logging (>= 11.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 11.0.0)
- Microsoft.Extensions.Telemetry (>= 11.0.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 11.0.0)
- OPCFoundation.NetStandard.Opc.Ua.Redundancy (>= 2.0.3-preview.300)
- OPCFoundation.NetStandard.Opc.Ua.Server (>= 2.0.3)
- RaftCs (>= 1.1.7)
- RaftCs.Transport (>= 1.1.7)
- System.Threading.RateLimiting (>= 11.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OPCFoundation.NetStandard.Opc.Ua.Redundancy.Server:
| Package | Downloads |
|---|---|
|
OPCFoundation.NetStandard.Opc.Ua.Redundancy.Kubernetes
OPC UA distributed server Kubernetes integration for leader election, peer discovery, and readiness. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.3-preview.300 | 53 | 12/4/2026 |
| 2.0.2-preview.300 | 825 | 11/11/2026 |
| 2.0.1-preview.200 | 95 | 10/12/2026 |
| 2.0.0-preview.200 | 185 | 10/7/2026 |
| 2.0.0-preview.6 | 85 | 9/30/2026 |
| 2.0.0-preview.5 | 93 | 9/17/2026 |
| 2.0.0-preview.4 | 92 | 9/2/2026 |
| 2.0.0-preview.3 | 99 | 8/28/2026 |