適用於 MongoDB 的 Azure Cosmos DB APIAzure Cosmos DB's API for MongoDB

Azure Cosmos DB 是 Microsoft 全域發佈的多模型資料庫服務,適用於任務關鍵性應用程式。Azure Cosmos DB is Microsoft's globally distributed, multi-model database service for mission-critical applications. Azure Cosmos DB 提供一站式全域散發、全球彈性調整的輸送量和儲存體、達到第 99 個百分位數的個位數毫秒延遲,以及保證的高可用性,全部都由領先業界的 SLA (英文) 所支援。Azure Cosmos DB provides turn-key global distribution, elastic scaling of throughput and storage worldwide, single-digit millisecond latencies at the 99th percentile, and guaranteed high availability, all backed by industry-leading SLAs. Azure Cosmos DB 會自動編製資料的索引,您不需要處理結構描述和索引管理。Azure Cosmos DB automatically indexes data without requiring you to deal with schema and index management. 它是多重模型,支援文件、索引鍵/值、圖表和單欄式資料模型。It is multi-model and supports document, key-value, graph, and columnar data models. 根據預設,您可以使用 SQL API 與互動 Cosmos DB。By default, you can interact with Cosmos DB using SQL API. 此外,Cosmos DB 服務為 Cassandra、MongoDB、Gremlin 和 Azure 表格儲存體等常見 NoSQL API 實作 Wire Protocol。Additionally, the Cosmos DB service implements wire protocols for common NoSQL APIs including Cassandra, MongoDB, Gremlin, and Azure Table Storage. 這可讓您使用熟悉的 NoSQL 用戶端驅動程式和工具來與您的 Cosmos 資料庫互動。This allows you to use your familiar NoSQL client drivers and tools to interact with your Cosmos database.

Wire Protocol 相容性Wire protocol compatibility

Azure Cosmos DB 實作 Cassandra、MongoDB、Gremlin 和 Azure 表格儲存體等常見 NoSQL 資料庫的 Wire Protocol。Azure Cosmos DB implements wire protocols of common NoSQL databases including Cassandra, MongoDB, Gremlin, and Azure Tables Storage. 由於 Cosmos DB 內直接且有效率地提供 Wire Protocol 的原生實作,因此可讓 NoSQL 資料庫的現有用戶端 SDK、驅動程式和工具,明確地與 Cosmos DB 互動。By providing a native implementation of the wire protocols directly and efficiently inside Cosmos DB, it allows existing client SDKs, drivers, and tools of the NoSQL databases to interact with Cosmos DB transparently. Cosmos DB 未使用資料庫的任何原始程式碼,來提供任何 NoSQL 資料庫的 Wire 相容 API。Cosmos DB does not use any source code of the databases for providing wire-compatible APIs for any of the NoSQL databases.

根據預設,適用於 MongoDB 的 Azure Cosmos DB API 與 MongoDB 的 Wire Protocol 3.2 版相容。By default, Azure Cosmos DB's API for MongoDB is compatible with version 3.2 of the MongoDB's wire protocol. Wire Protocol 3.4 版中新增的功能或查詢運算子,目前可以預覽功能的方式取得。Features or query operators added in version 3.4 of the wire protocol are currently available as a preview feature. 任何了解這些通訊協定版本的 MongoDB 用戶端驅動程式,應該都能原生地連線到 Cosmos DB。Any MongoDB client driver that understands these protocol versions should be able to natively connect to Cosmos DB.

適用於 MongoDB 的 Azure Cosmos DB API

主要權益Key benefits

Cosmos DB 作為完全受控且全域散發之資料庫的主要優點如這裡所述。The key benefits of Cosmos DB as a fully managed, globally distributed, database as a service are described here. 此外,以原生方式實作熱門 NoSQL API 的 Wire Protocol,使 Cosmos DB 能提供下列優點:Additionally, by natively implementing wire protocols of popular NoSQL APIs, Cosmos DB provides the following benefits:

  • 輕鬆地將應用程式移轉到 Cosmos DB,同時保留應用程式邏輯的重要部分。Easily migrate your application to Cosmos DB while preserving significant portions of your application logic.
  • 維持您的應用程式可攜,並繼續維持雲端廠商中立。Keep your application portable and continue to remain cloud vendor-agnostic.
  • 取得由 Cosmos DB 所提供領先業界且有財務補償適用於常見 NoSQL API 的 SLA。Get industry leading, financially backed SLAs for the common NoSQL APIs powered by Cosmos DB.
  • 根據您的需要,彈性地調整針對 Cosmos 資料庫佈建的輸送量和儲存體,並僅支付您所需要的儲存體與輸送量。Elastically scale the provisioned throughput and storage for your Cosmos databases based on your need and pay only for the throughput and storage you need. 這會大量節省成本。This leads to significant cost savings.
  • 周全全球散發且具有多重主機複寫。Turnkey, global distribution with multi-master replication.

適用於 MongoDB 的 Cosmos DB APICosmos DB's API for MongoDB

請遵循快速入門建立 Cosmos 帳戶,然後遷移您現有的 MongoDB 應用程式以使用 Azure Cosmos DB,或建置一個新的應用程式:Follow the quickstarts to create an Cosmos account and migrate your existing MongoDB application to use Azure Cosmos DB, or build a new one:

後續步驟Next steps

以下是可讓您快速入門的一些指標:Here are a few pointers to get you started:

注意:本文描述 Azure Cosmos DB 的功能,該功能提供對 MongoDB 資料庫的 Wire Protocol 相容性。Microsoft 不會執行 MongoDB 資料庫來提供這項服務。Azure Cosmos DB 與 MongoDB, Inc. 沒有附屬關係Note: This article describes a feature of Azure Cosmos DB that provides wire protocol compatibility with MongoDB databases. Microsoft does not run MongoDB databases to provide this service. Azure Cosmos DB is not affiliated with MongoDB, Inc.