Skip to content

NatsOptions.NumReplicas

NumReplicas

getset
View source
public int NumReplicas
The number of stream replicas in the NATS JetStream cluster. Higher values improve availability during node restarts (R3 survives single-node failures in a 3-node cluster). The NATS server enforces that the value is odd and does not exceed the cluster size. Defaults to 1. Set to 3 for production clusters with ≥ 3 nodes.