Table of Contents

Interface IMultiRegionHealthMonitor

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Provides health monitoring and replication status for multi-region key management.

public interface IMultiRegionHealthMonitor

Remarks

This interface separates health monitoring concerns from the core IMultiRegionKeyProvider interface, following the Interface Segregation Principle. Consumers that only need failover/failback/replication operations do not need to depend on health monitoring methods.

Methods

GetPrimaryHealthAsync(CancellationToken)

Gets the health status for the primary region.

Task<RegionHealth> GetPrimaryHealthAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<RegionHealth>

The current health status of the primary region.

GetReplicationStatusAsync(CancellationToken)

Gets the current replication status between regions.

Task<ReplicationStatus> GetReplicationStatusAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<ReplicationStatus>

The replication status including lag and pending keys.

Remarks

Use this to monitor whether RPO (Recovery Point Objective) targets are being met.

GetSecondaryHealthAsync(CancellationToken)

Gets the health status for the secondary region.

Task<RegionHealth> GetSecondaryHealthAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<RegionHealth>

The current health status of the secondary region.