ConsistencyLevel Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
These are the consistency levels supported by the Azure Cosmos DB service.
public enum ConsistencyLevel
type ConsistencyLevel =
Public Enum ConsistencyLevel
- Inheritance
-
ConsistencyLevel
Fields
BoundedStaleness | 1 | Bounded Staleness guarantees that reads are not too out-of-date. This can be configured based on number of operations (MaxStalenessPrefix) or time (MaxStalenessIntervalInSeconds). For more information on MaxStalenessPrefix and MaxStalenessIntervalInSeconds, please see ConsistencyPolicy. |
ConsistentPrefix | 4 | ConsistentPrefix Consistency guarantees that reads will return some prefix of all writes with no gaps. All writes will be eventually be available for reads. |
Eventual | 3 | Eventual Consistency guarantees that reads will return a subset of writes. All writes will be eventually be available for reads. |
Session | 2 | Session Consistency guarantees monotonic reads (you never read old data, then new, then old again), monotonic writes (writes are ordered) and read your writes (your writes are immediately visible to your reads) within any single session. |
Strong | 0 | Strong Consistency guarantees that read operations always return the value that was last written. |
Remarks
The requested Consistency Level must match or be weaker than that provisioned for the database account. For more information on consistency levels, please see Consistency Levels article.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기