Cosmos DB for MongoDB Developers

Migrating to Azure Cosmos DB and Using the MongoDB API

  • Manish Sharma

Table of contents

  1. Front Matter
    Pages i-xviii
  2. Manish Sharma
    Pages 1-10
  3. Manish Sharma
    Pages 11-59
  4. Manish Sharma
    Pages 61-79
  5. Manish Sharma
    Pages 81-108
  6. Manish Sharma
    Pages 109-135
  7. Manish Sharma
    Pages 137-154
  8. Manish Sharma
    Pages 155-177
  9. Manish Sharma
    Pages 179-189
  10. Back Matter
    Pages 205-209

About this book


Learn Azure Cosmos DB and its MongoDB API with hands-on samples and advanced features such as the multi-homing API, geo-replication, custom indexing, TTL, request units (RU), consistency levels, partitioning, and much more. Each chapter explains Azure Cosmos DB’s features and functionalities by comparing it to MongoDB with coding samples. 

Cosmos DB for MongoDB Developers starts with an overview of NoSQL and Azure Cosmos DB and moves on to demonstrate the difference between geo-replication of Azure Cosmos DB compared to MongoDB. Along the way you’ll cover subjects including indexing, partitioning, consistency, and sizing, all of which will help you understand the concepts of read units and how this calculation is derived from an existing MongoDB’s usage. 

The next part of the book shows you the process and strategies for migrating to Azure Cosmos DB. You will learn the day-to-day scenarios of using Azure Cosmos DB, its sizing strategies, and optimizing techniques for the MongoDB API. This information will help you when planning to migrate from MongoDB or if you would like to compare MongoDB to the Azure Cosmos DB MongoDB API before considering the switch.

You will:
  • Migrate to MongoDB and understand its strategies
  • Develop a sample application using MongoDB’s client driver
  • Make use of sizing best practices and performance optimization scenarios
  • Optimize MongoDB’s partition mechanism and indexing


CosmosDB GraphDB MongoDB DocumentDB TableStorage Azure NoSql Gremlin Neo4J Microsoft

Authors and affiliations

  • Manish Sharma
    • 1
  1. 1.FaridabadIndia

Bibliographic information

Industry Sectors
Chemical Manufacturing
Finance, Business & Banking
IT & Software
Consumer Packaged Goods
Energy, Utilities & Environment