您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

欢迎使用 Azure Cosmos DBWelcome to Azure Cosmos DB

如今的应用程序需要具备高响应能力并始终联机。Today’s applications are required to be highly responsive and always online. 若要实现低延迟和高可用性,需要在靠近用户的数据中心部署这些应用程序的实例。To achieve low latency and high availability, instances of these applications need to be deployed in datacenters that are close to their users. 应用程序需要实时对高峰时段使用情况的巨大变化做出响应,存储不断增加的数据量,并在毫秒内将这些数据提供给用户。Applications need to respond in real time to large changes in usage at peak hours, store ever increasing volumes of data, and make this data available to users in milliseconds.

Azure Cosmos DB 是 Microsoft 提供的全球分布式多模型数据库服务。Azure Cosmos DB is Microsoft's globally distributed, multi-model database service. 只需单击一个按钮,即可通过 Cosmos DB 跨任意数量的全球 Azure 区域弹性且独立地缩放吞吐量和存储。With a click of a button, Cosmos DB enables you to elastically and independently scale throughput and storage across any number of Azure regions worldwide. 可以弹性缩放吞吐量和存储,并使用你喜欢的 API 对 SQL、MongoDB、Cassandra、表或 Gremlin 中的数据实现低至个位数毫秒级的快速访问。You can elastically scale throughput and storage, and take advantage of fast, single-digit-millisecond data access using your favorite API including SQL, MongoDB, Cassandra, Tables, or Gremlin. Cosmos DB 为吞吐量、延迟、可用性和一致性保证提供综合服务级别协议 (SLA),这是其他数据库服务无法提供的。Cosmos DB provides comprehensive service level agreements (SLAs) for throughput, latency, availability, and consistency guarantees, something no other database service offers.

无需 Azure 订阅即可免费试用 Azure Cosmos DB,也无需缴纳费用或承诺金。You can Try Azure Cosmos DB for Free without an Azure subscription, free of charge and commitments.

Azure Cosmos DB 是 Microsoft 的全球分布式数据库服务,可以弹性扩展,已保证低延迟,有五个一致性模型,并提供全面 SLA 的保证

主要优势Key Benefits

统包式全局分发Turnkey global distribution

凭借 Cosmos DB,你可以在全球范围内生成具有高响应性和高可用性的应用程序。Cosmos DB enables you to build highly responsive and highly available applications worldwide. 无论用户身处何处,Cosmos DB 均可以透明方式复制数据,因此用户可以与离他们最近的数据副本进行交互。Cosmos DB transparently replicates your data wherever your users are, so your users can interact with a replica of the data that is closest to them.

凭借 Cosmos DB,还可以随时向 Cosmos 帐户添加或删除任何 Azure 区域,只需单击一个按钮即可。Cosmos DB allows you to add or remove any of the Azure regions to your Cosmos account at any time, with a click of a button. Cosmos DB 将无缝地将数据复制到与 Cosmos 帐户相关联的所有区域,同时,得益于该服务的多导功能,应用程序将继续保持高可用性 。Cosmos DB will seamlessly replicate your data to all the regions associated with your Cosmos account while your application continues to be highly available, thanks to the multi-homing capabilities of the service. 有关详细信息,请参阅全局分发一文。For more information, see the global distribution article.

AlwaysOnAlways On

凭借与 Azure 基础结构和透明多主数据库复制的深度集成,Cosmos DB 可为读写操作提供 99.999% 的高可用性By virtue of deep integration with Azure infrastructure and transparent multi-master replication, Cosmos DB provides 99.999% high availability for both reads and writes. Cosmos DB 还提供以编程方式(或通过门户)调用 Cosmos 帐户的区域性故障转移的功能。Cosmos DB also provides you with the ability to programmatically (or via Portal) invoke the regional failover of your Cosmos account. 此功能有助于确保应用程序能够在发生区域性灾难时进行故障转移。This capability helps ensure that your application is designed to failover in the case of regional disaster.

吞吐量和存储的弹性可伸缩性(全球范围内)Elastic scalability of throughput and storage, worldwide

Cosmos DB 采用透明的水平分区和多主数据库复制设计,在全球范围内为读写操作提供了前所未有的弹性可伸缩性。Designed with transparent horizontal partitioning and multi-master replication, Cosmos DB offers unprecedented elastic scalability for your writes and reads, all around the globe. 通过单个 API 调用即可在全球范围内从数千个请求/秒扩展到数亿个请求/秒,并且只需为所需吞吐量(和存储)付费。You can elastically scale up from thousands to hundreds of millions of requests/sec around the globe, with a single API call and pay only for the throughput (and storage) you need. 此功能有助于处理工作负载中的意外峰值,而无需为意外峰值进行过度预配。This capability helps you to deal with unexpected spikes in your workloads without having to over-provision for the peak. 有关详细信息,请参阅 Cosmos DB 中的分区容器和数据库上的预配吞吐量以及全局缩放预配的吞吐量For more information, see partitioning in Cosmos DB, provisioned throughput on containers and databases, and scaling provisioned throughput globally.

保证第 99 个百分位为低延迟(全球范围内)Guaranteed low latency at 99th percentile, worldwide

使用 Cosmos DB,可以生成响应迅速、具全球规模的应用程序。Using Cosmos DB, you can build highly responsive, planet scale applications. 凭借其新颖的多主数据库复制协议、免闩锁及优化了写入的数据库引擎,,Cosmos DB 可保证全球任意位置第 99 个百分位的读取(已编入索引)和写入延迟均低于 10 毫秒。With its novel multi-master replication protocol and latch-free and write-optimized database engine, Cosmos DB guarantees less than 10-ms latencies for both, reads (indexed) and writes at the 99th percentile, all around the world. 此功能可以为高响应能力的应用持续引入数据,并提供快速查询。This capability enables sustained ingestion of data and blazing-fast queries for highly responsive apps.

精确定义的多个一致性选择Precisely defined, multiple consistency choices

在 Cosmos DB 中构建全球分布式应用程序时,不再需要在一致性、可用性、延迟和吞吐量之间进行极端的权衡When building globally distributed applications in Cosmos DB, you no longer have to make extreme tradeoffs between consistency, availability, latency, and throughput. Cosmos DB 的多主数据库复制协议经过精心设计,为直观的编程模型提供五个明确定义的一致性选择 - 强、有限过期、会话、一致前缀和最终,该编程模型针对全球分布式应用程序具有低延迟和高可用性 。Cosmos DB’s multi-master replication protocol is carefully designed to offer five well-defined consistency choices - strong, bounded staleness, session, consistent prefix, and eventual — for an intuitive programming model with low latency and high availability for your globally distributed application.

无需架构或索引管理No schema or index management

对于全局分布的应用来说,让数据库架构和索引与应用程序架构保持同步尤其不便。Keeping database schema and indexes in-sync with an application’s schema is especially painful for globally distributed apps. 借助 Cosmos DB,则无需处理架构或索引管理。With Cosmos DB, you do not need to deal with schema or index management. 数据库引擎完全与架构无关。The database engine is fully schema-agnostic. 由于不需要架构和索引管理,因此迁移架构时也不必担心应用程序故障时间。Since no schema and index management is required, you also don’t have to worry about application downtime while migrating schemas. Cosmos DB 自动为所有数据编制索引,并可快速提供查询服务。Cosmos DB automatically indexes all data and serves queries fast.

久经考验的数据库服务Battle tested database service

Cosmos DB 是 Azure 中的一项基本服务。Cosmos DB is a foundational service in Azure. 近十年来,Microsoft 的许多产品已将 Cosmos DB 用于全球范围的任务关键型应用程序,包括 Skype、Xbox、Office 365、Azure 等。For nearly a decade, Cosmos DB has been used by many of Microsoft’s products for mission critical applications at global scale, including Skype, Xbox, Office 365, Azure, and many others. 如今,Cosmos DB 是 Azure 上发展最快的服务之一,许多需要弹性缩放、统包全球分发、多主数据库复制的外部客户和任务关键型应用程序都在使用这项服务,以实现读写操作的低延迟和高可用性。Today, Cosmos DB is one of the fastest growing services on Azure, used by many external customers and mission-critical applications that require elastic scale, turnkey global distribution, multi-master replication for low latency and high availability of both reads and writes.

无处不在、分布广泛Ubiquitous regional presence

Cosmos DB 已面向全球所有 Azure 区域推出,包括公有云中的区域(超过 54 个)、中国区 Azure 世纪互联、Azure 德国、Azure 政府以及适用于美国国防部 (DoD) 的 Azure 政府。Cosmos DB is available in all Azure regions worldwide, including 54+ regions in public cloud, Azure China 21Vianet, Azure Germany, Azure Government, and Azure Government for Department of Defense (DoD). 请参阅 Cosmos DB 的区域性存在See Cosmos DB’s regional presence.

默认保护和企业就绪Secure by default and enterprise ready

Cosmos DB 已通过各种符合性标准认证。Cosmos DB is certified for a wide array of compliance standards. 此外,Cosmos DB 中的所有数据都将进行静态和动态加密。Additionally, all data in Cosmos DB is encrypted at rest and in motion. Cosmos DB 提供行级授权,并遵循严格的安全标准。Cosmos DB provides row level authorization and adheres to strict security standards.

大大节省了 TCOSignificant TCO savings

由于 Cosmos DB 是一项完全托管服务,因此不再需要管理和操作复杂的多数据中心部署和数据库软件的升级,也不再需要为支持、许可或操作付费,也不必为峰值工作负载预配数据库。Since Cosmos DB is a fully managed service, you no longer need to manage and operate complex multi datacenter deployments and upgrades of your database software, pay for the support, licensing, or operations or have to provision your database for the peak workload. 有关详细信息,请参阅使用 Cosmos DB 优化成本For more information, see Optimize cost with Cosmos DB.

业界领先的复合型 SLAIndustry leading comprehensive SLAs

Cosmos DB 是第一个也是唯一一个提供业界领先复合型 SLA 的服务,实现了 99.999% 高可用性、第 99 个百分位的读写延迟、可靠吞吐量和一致性。Cosmos DB is the first and only service to offer industry-leading comprehensive SLAs encompassing 99.999% high availability, read and write latency at the 99th percentile, guaranteed throughput, and consistency.

具有本机内置 Apache Spark 的全球分布式运营分析和 AIGlobally distributed operational analytics and AI with natively built-in Apache Spark

可以在 Cosmos DB 中存储的数据上直接运行 SparkYou can run Spark directly on data stored in Cosmos DB. 凭借该功能,你可以在全球范围内执行低延迟的操作分析,而不会影响直接针对 Cosmos DB 进行操作的事务工作负载。This capability allows you to do low-latency, operational analytics at global scale without impacting transactional workloads operating directly against Cosmos DB. 有关详细信息,请参阅全球分布式运营分析For more information, see Globally distributed operational analytics.

Cosmos DB 提供多种 API 来处理存储在 Cosmos 数据库中的数据。Cosmos DB offers a choice of APIs to work with your data stored in your Cosmos database. 默认情况下,可以使用 SQL(核心 API)来查询 Cosmos 数据库。By default, you can use SQL (a core API) for querying your Cosmos database. Cosmos DB 还实现用于 CassandraMongoDBGremlinAzure 表存储的 API。Cosmos DB also implements APIs for Cassandra, MongoDB, Gremlin and Azure Table Storage. 可以将常用 NoSQL(例如,MongoDB、Cassandra、Gremlin)的客户端驱动程序(和工具)直接指向 Cosmos 数据库。You can point client drivers (and tools) for the commonly used NoSQL (e.g., MongoDB, Cassandra, Gremlin) directly to your Cosmos database. Cosmos DB 支持常用 NoSQL API 的网络协议,因此可用其实现以下目标:By supporting the wire protocols of commonly used NoSQL APIs, Cosmos DB allows you to:

  • 轻松将应用程序迁移到 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.
  • 为常用的 NoSQL API 获取行业领先的、有资金保障的 SLA 完全托管云服务。Get a fully-managed cloud service with industry leading, financially backed SLAs for the common NoSQL APIs.
  • 根据需求弹性缩放数据库的预配吞吐量和存储,并且只需为所需的吞吐量和存储付费。Elastically scale the provisioned throughput and storage for your databases based on your need and pay only for the throughput and storage you need. 这可以大幅节省成本。This leads to significant cost savings.

受益于 Azure Cosmos DB 的解决方案Solutions that benefit from Azure Cosmos DB

任何 Web、移动、游戏和 IoT 应用程序,只要其需要处理大量数据和全局规模的读写操作,各种数据的响应时间接近实时,就可以充分利用 Cosmos DB 所保证的高可用性、高吞吐量、低延迟以及可调的一致性。Any web, mobile, gaming, and IoT application that needs to handle massive amounts of data, reads, and writes at a global scale with near-real response times for a variety of data will benefit from Cosmos DB's guaranteed high availability, high throughput, low latency, and tunable consistency. 了解如何将 Azure Cosmos DB 用于生成 IoT 和 远程信息处理零售和营销游戏以及 Web 和移动应用程序Learn about how Azure Cosmos DB can be used to build IoT and telematics, retail and marketing, gaming and web and mobile applications.

后续步骤Next steps

了解有关 Cosmos DB 的核心概念统包式全球分布分区以及预配的吞吐量的信息。Read more about Cosmos DB's core concepts turnkey global distribution and partitioning and provisioned throughput.

请通过阅读以下快速入门文章之一,来开始使用 Azure Cosmos DB:Get started with Azure Cosmos DB with one of our quickstarts: