Besides different models of a database, Azure Cosmos DB offers also a different level of consistency. You may wonder what consistency is and how it affects your data.
We can define it as follows:
Consistency is a parameter of a database system, which reflects the way a transaction affects data. It defines the rules that are applied when different constraints or/and triggers affect data written to a database.
So basically it tells you what are the guarantees that, if your data becomes affected by a set of operations, it will not be malformed and you will be able to rely on it. The following are the available consistency models in Cosmos DB:
- STRONG
- BOUNDED STATELESS
- SESSION
- CONSISTENT PREFIX
- EVENTUAL
In the ...