ServiceReplicaListener.ListenOnSecondary Property

Definition

Gets a value indicating whether this communication listener should be opened when the replica becomes an ActiveSecondary. When this member is false, the communication listener is opened only when the replica becomes Primary. The default value for this property is false.

public bool ListenOnSecondary { get; }
member this.ListenOnSecondary : bool
Public ReadOnly Property ListenOnSecondary As Boolean

Property Value

Remarks

This flag can be set when the primary replica is too busy to serve reads and writes efficiently and the application can tolerate reading stale (but consistent) data,

then data can be read from secondary replica.

Applies to