RequestOptions.ConsistencyLevel Property

Definition

Gets or sets the consistency level required for the request in the Azure DocumentDB database service.

public Nullable<Microsoft.Azure.Documents.ConsistencyLevel> ConsistencyLevel { get; set; }
Property Value

The consistency level required for the request.

Remarks

DocumentDB offers 4 different consistency levels. Strong, Bounded Staleness, Session and Eventual - in order of strongest to weakest consistency.

While this is set at a database account level, DocumentDB allows a developer to weaken the default consistency level for each individual request.