Azure Cosmos DB Contd
- Azure Global Distribution:
- Azure Cosmos Db is a globally distributed database system that allow you to read and write from the local replicas of your Database.
- Auzre Cosmos DB tranparently replicates the data to all the regions assiociated with your Cosmos Account
-
Consistency Level
- Strong
- Bounded Stateless Consistency
- Session
- Consistent Prefix
- Eventual
-
Refer Here to understand consistency levels use the images demonstrating consistency.
-
Replicating Data Globally
-
Firewall and virtual Networks
-
RU (Request Units in Cosmos DB):
- The cost of all database operations is normalized by Azure Cosmos DB & is expressed in Request Units (RUs)
- RU is a performance currency abstracting system resources such as CPU, IOPS and memory that are required to perform database operations supported.
- The cost to do a point read (i.e. fetching a single item by it ID and partition key value) for 1 KB item is 1 RU.
-
Azure Cosmos Account can be created in the following ways
- Provisioned throughput mode:
- In this mode you provision the number of RUs for your application on per-second basis in the increments of 100RUs per second
- Serverless mode:
- In this mode you don’t have to provision any throughput when creating resources. you get billed for the amount of RUs that have beend consumed by your database operations.
- Auto Scale mode: In this mode, you can automatically and instantly scale the throughput RU/s fo your database based on its usage
- Provisioned throughput mode:
