Understanding Cosmos DB Resource Hierarchy – Database
    • Dark
      Light
    • PDF

    Understanding Cosmos DB Resource Hierarchy – Database

    • Dark
      Light
    • PDF

    Article Summary

    #ServerlessTips - Azure Cosmos DB
    Author: Steef-Jan Wiggers Azure MVP

    You can create a database and container with an available account (see tip 1). Database creation requires a database id (name), or unless you need to share the throughput capacity on the database level, you need to do more configuration. Note the following regarding the database, which you can view as a namespace:

    APIDatabase
    API for NoSQLDatabase
    API for Apache CassandraKeyspace
    API for MongoDBDatabase
    API for Apache GremlinDatabase
    API for TableNA

    Throughput is dimensioned on so-called Request Units(RUs). The database service normalizes the costs of all database operations, and a RU is a performance currency abstracting the system resources such as CPU, IOPS, and memory. And you will be billed on that since CosmosDB is a Platform as a Service. You are billed on the consumption of those RUs. Be aware of that, and the pricing of RUs can be found on the pricing page.

    Picture132

    The screenshot above outlines what you can do when creating a new container (next tip 3) for NoSQL. Depending on the model, the experience can differ when choosing another API to access your data model. The database is part of the hierarchy of Cosmos DB, as explained in the previous tip 1 – Account.


    Was this article helpful?