Azure Cosmos DB Cassandra API 簡介Introduction to the Azure Cosmos DB Cassandra API

Azure Cosmos DB Cassandra API 可供針對 Apache Cassandra 撰寫的應用程式作為資料存放區。Azure Cosmos DB Cassandra API can be used as the data store for apps written for Apache Cassandra. 這表示,藉由使用符合 CQLv4 的現有 Apache 驅動程式,您現有的 Cassandra 應用程式現在可以與 Azure Cosmos DB Cassandra API 通訊。This means that by using existing Apache drivers compliant with CQLv4, your existing Cassandra application can now communicate with the Azure Cosmos DB Cassandra API. 在許多情況下,只需變更連接字串,您就可以從使用 Apache Cassandra 切換為使用 Azure Cosmos DB 的 Cassandra API。In many cases, you can switch from using Apache Cassandra to using Azure Cosmos DB 's Cassandra API, by just changing a connection string.

使用 Cassandra 查詢語言 (CQL)、Cassandra 型工具 (例如 cqlsh),以及您熟悉的 Cassandra 用戶端驅動程式,Cassandra API 可讓您與儲存在 Azure Cosmos DB 中的資料互動。The Cassandra API enables you to interact with data stored in Azure Cosmos DB using the Cassandra Query Language (CQL) , Cassandra-based tools (like cqlsh) and Cassandra client drivers that you’re already familiar with.

使用適用於 Azure Cosmos DB 的 Apache Cassandra API 有什麼優點?What is the benefit of using Apache Cassandra API for Azure Cosmos DB?

沒有作業管理:Azure Cosmos DB Cassandra API 是完全受控的雲端服務,可卸除因管理及監視各個作業系統、JVM 和 yaml 檔案及其互動的各種設定而產生的工作負荷。No operations management: As a fully managed cloud service, Azure Cosmos DB Cassandra API removes the overhead of managing and monitoring a myriad of settings across OS, JVM, and yaml files and their interactions. Azure Cosmos DB 可監視輸送量、延遲、儲存體、可用性和可設定的警示。Azure Cosmos DB provides monitoring of throughput, latency, storage, availability, and configurable alerts.

效能管理:Azure Cosmos DB 提供受 SLA 支援的保證低度延遲讀取和寫入 (第 99 個百分位數)。Performance management: Azure Cosmos DB provides guaranteed low latency reads and writes at the 99th percentile, backed up by the SLAs. 使用者無須擔心作業的負荷,同時可確保高效能和低延遲的讀取和寫入。Users do not have to worry about operational overhead to ensure high performance and low latency reads and writes. 這表示,使用者不需要處理排程壓縮、管理標記,以及手動設定 Bloom 篩選和複本。This means that users do not need to deal with scheduling compaction, managing tombstones, setting up bloom filters and replicas manually. Azure Cosmos DB 可卸除管理這些問題的工作負荷,讓您專注於應用程式的邏輯。Azure Cosmos DB removes the overhead to manage these issues and lets you focus on the application logic.

可使用現有的程式碼和工具:Azure Cosmos DB 提供與現有 Cassandra SDK 和工具相容的有線通訊協定層級。Ability to use existing code and tools: Azure Cosmos DB provides wire protocol level compatibility with existing Cassandra SDKs and tools. 此相容性可確保您可以透過 Azure Cosmos DB Cassandra API 使用現有程式碼基底執行瑣碎的變更。This compatibility ensures you can use your existing codebase with Azure Cosmos DB Cassandra API with trivial changes.

輸送量與儲存體彈性:Azure Cosmos DB 可透過 Azure 入口網站、PowerShell 或 CLI 作業提供跨所有區域的保證輸送量,以及調整佈建的輸送量。Throughput and storage elasticity: Azure Cosmos DB provides guaranteed throughput across all regions and can scale the provisioned throughput with Azure portal, PowerShell, or CLI operations. 您可以依據可預測的效能,視需要為您的資料表彈性地調整儲存體和輸送量。You can elastically scale storage and throughput for your tables as needed with predictable performance.

全域散發和可用性:Azure Cosmos DB 可讓您跨所有 Azure 區域全域散發資料以及在本機提供資料,同時確保低延遲的的資料存取和高可用性。Global distribution and availability: Azure Cosmos DB provides the ability to globally distribute data across all Azure regions and serve the data locally while ensuring low latency data access and high availability. Azure Cosmos DB 在單一區域內可提供 99.99% 的高可用性,且在多個區域間可提供 99.999% 的讀取和寫入可用性,且不會產生額外的作業負荷。Azure Cosmos DB provides 99.99% high availability within a region and 99.999% read and write availability across multiple regions with no operations overhead. 請參閱全域散發資料一文以深入了解。Learn more in Distribute data globally article.

一致性選擇:Azure Cosmos DB 提供五個定義完善的一致性層級可選擇,讓您能在一致性與效能之間做出最好的取捨。Choice of consistency: Azure Cosmos DB provides the choice of five well-defined consistency levels to achieve optimal tradeoffs between consistency and performance. 這些一致性層級包括強式、限定過期、工作階段、一致前置詞和最終。These consistency levels are strong, bounded-staleness, session, consistent prefix and eventual. 這些定義完善、實用且直觀的一致性層級可讓開發人員在一致性、可用性與延遲三者間做出正確的取捨。These well-defined, practical, and intuitive consistency levels allow developers to make precise trade-offs between consistency, availability, and latency. 請參閱一致性層級一文以深入了解。Learn more in consistency levels article.

企業級:Azure cosmos DB 會提供相容性認證,確保使用者可以安全地使用平台。Enterprise grade: Azure cosmos DB provides compliance certifications to ensure users can use the platform securely. Azure Cosmos DB 也會為控制層活動提供待用加密和移動中加密、IP 防火牆和稽核記錄。Azure Cosmos DB also provides encryption at rest and in motion, IP firewall, and audit logs for control plane activities.

後續步驟Next steps