{"id":10809,"date":"2025-08-13T07:10:53","date_gmt":"2025-08-13T14:10:53","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cosmosdb\/?p=10809"},"modified":"2025-08-19T07:41:32","modified_gmt":"2025-08-19T14:41:32","slug":"azure-managed-instance-for-apache-cassandra-v5-0-generally-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cosmosdb\/azure-managed-instance-for-apache-cassandra-v5-0-generally-available\/","title":{"rendered":"Azure Managed Instance for Apache Cassandra v5.0 Generally Available!"},"content":{"rendered":"<p><span style=\"font-family: arial, helvetica, sans-serif;\"><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0.png\"><img decoding=\"async\" class=\"alignnone wp-image-10824\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0-300x200.png\" alt=\"Title Cassandra v5 0 image\" width=\"641\" height=\"427\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0-300x200.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0-1024x683.png 1024w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0-768x512.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Title-Cassandra-v5.0.png 1228w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Azure Managed Instance for Apache Cassandra Upgrade to Cassandra v5.0 is now generally available, bringing a host of powerful new features and performance improvements to your cloud-native applications. This release marks a significant milestone for developers and data platform teams looking to modernize their distributed data infrastructure.<\/span><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">Why Upgrade to Cassandra v5.0?<\/span><\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Cassandra v5.0 introduces several enhancements that make it a compelling upgrade for existing users and an attractive option for new workloads. With support for ACID transactions, Dynamic Data masking, Vector Search, Storage-attached indexes (SAI), improved performance across read and write operations etc. this version is designed to meet the demands of modern, high-scale applications.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Here is the full snapshot of the feature set:<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Cassandra-v5.0-FeatureSet.png\"><img decoding=\"async\" class=\"alignnone wp-image-10815\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Cassandra-v5.0-FeatureSet-300x166.png\" alt=\"Cassandra v5 0 FeatureSet image\" width=\"703\" height=\"389\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Cassandra-v5.0-FeatureSet-300x166.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/Cassandra-v5.0-FeatureSet.png 684w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Upgrading to Cassandra v5.0 in Azure Managed Instance means you get all these benefits in a fully managed environment\u2014no need to worry about cluster provisioning, patching, or scaling. You can focus on building resilient, scalable applications while Azure handles the operational complexity.<\/span><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">Recommended Upgrade Approach<\/span><\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">To ensure a smooth upgrade to Cassandra v5.0, it is recommended to add an additional data center (DC) before initiating the upgrade. This approach helps mitigate any potential latency impact during the transition. While the upgrade process is designed to be automatic and seamless with no availability impact, performing the upgrade within the lenient upgrade window is strongly advised to maintain optimal performance and supportability.<\/span><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">How to upgrade<\/span><\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Upgrading is quite seamless and easy; you can follow the steps below:<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Step-1: From overview click on update.<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-1.png\"><img decoding=\"async\" class=\"alignnone wp-image-10812\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-1-300x156.png\" alt=\"UpgradeCassandrav5 0Screenshot 1 image\" width=\"517\" height=\"269\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-1-300x156.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-1-768x399.png 768w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-1.png 950w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/a><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Step-2: Choose Cassandra Version v5.0 and click on update.<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot.png\"><img decoding=\"async\" class=\"alignnone wp-image-10811\" src=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-300x246.png\" alt=\"UpgradeCassandrav5 0Screenshot image\" width=\"494\" height=\"405\" srcset=\"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot-300x246.png 300w, https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-content\/uploads\/sites\/52\/2025\/08\/UpgradeCassandrav5.0Screenshot.png 760w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><\/p>\n<p><div class=\"alert alert-warning\"><p class=\"alert-divider\"><i class=\"fabric-icon fabric-icon--Warning\"><\/i><strong>Audit Logging<\/strong><\/p>Disable Audit Logging in the Monitoring \u2192 Diagnostics settings before performing an update, if it is currently enabled.<\/div><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">Core Benefits from OSS Cassandra v5.0<\/span><\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Storage-Attached Indexes (SAI)<\/strong>: SAI dramatically improves query performance and flexibility by allowing efficient indexing on multiple columns. For instance, you can now run fast queries on customer profiles filtered by location, age, and subscription status without creating separate indexes for each field.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Dynamic Data Masking (DDM)<\/strong><\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Cassandra v5.0 introduces Dynamic Data Masking to protect sensitive data by masking it at query time based on user roles. This ensures that unauthorized users see obfuscated values without altering the actual data. It simplifies compliance with regulations like GDPR and reduces the need for custom application logic.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Vector Search<\/strong><\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">With native Vector Search, Cassandra v5.0 supports high-dimensional similarity queries using ANN algorithms like HNSW. This enables AI use cases such as semantic search and recommendations directly within Cassandra, eliminating the need for external vector databases and ensuring scalable, low-latency retrieval.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Improved Performance<\/strong>: With enhancements to the storage engine and compaction strategies, Cassandra v5.0 delivers faster read and write throughput. A real-world example would be a retail application handling thousands of concurrent transactions per second with reduced latency and better resource utilization.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Enhanced Developer Experience<\/strong>: The new version includes better observability, improved diagnostics, and more intuitive configuration options. Developers can now use built-in metrics and tracing to debug query performance issues more easily, reducing time spent on troubleshooting.<\/span><\/p>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong>Compatibility and Portability<\/strong>: Cassandra v5.0 maintains full compatibility with existing CQL-based applications. This means you can upgrade without rewriting your application logic\u2014like keeping your existing microservices architecture intact while benefiting from the new features.<\/span><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">What This Means in Azure Managed Instance<\/span><\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Running Cassandra v5.0 in Azure Managed Instance allows you to leverage all these OSS improvements with the added benefits of Azure\u2019s enterprise-grade reliability, security, and scalability. You can integrate seamlessly with other Azure services, automate deployments, and scale elastically based on your workload needs.<\/span><\/p>\n<h2><span style=\"font-family: arial, helvetica, sans-serif;\">CQL Examples for Cassandra v5.0 Features<\/span><\/h2>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">Vector Search Example<\/span><\/h3>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">-- Create a keyspace\r\nCREATE KEYSPACE demo WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};\r\n\r\n-- Use the keyspace\r\nUSE demo;\r\n\r\n-- Create a table with a vector column\r\nCREATE TABLE items (\r\n  id UUID PRIMARY KEY,\r\n  name TEXT,\r\n  embedding VECTOR&lt;FLOAT, 3&gt;\r\n);\r\n\r\n-- Create a vector index\r\nCREATE CUSTOM INDEX embedding_index ON items(embedding)\r\nUSING 'StorageAttachedIndex'\r\nWITH OPTIONS = { 'similarity_function': 'COSINE' };\r\n\r\n-- Insert sample data\r\nINSERT INTO items (id, name, embedding) VALUES (uuid(), 'Item A', [0.1, 0.2, 0.3]);\r\nINSERT INTO items (id, name, embedding) VALUES (uuid(), 'Item B', [0.4, 0.5, 0.6]);\r\n\r\n-- Query for nearest neighbors\r\nSELECT name FROM items\r\nORDER BY embedding ANN OF [0.1, 0.2, 0.3]\r\nLIMIT 1;\r\n<\/code><\/pre>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">Storage-Attached Index (SAI) Example<\/span><\/h3>\n<pre class=\"prettyprint language-sql\"><code class=\"language-sql\">CREATE TABLE customers (\r\n\r\ncustomer_id UUID PRIMARY KEY,\r\n\r\nname TEXT,\r\n\r\nage INT,\r\n\r\nlocation TEXT,\r\n\r\nsubscription_status TEXT\r\n\r\n);\r\n\r\nCREATE INDEX ON customers(age);\r\n\r\nCREATE INDEX ON customers(location);\r\n\r\nCREATE INDEX ON customers(subscription_status);\r\n\r\nSELECT * FROM customers\r\n\r\nWHERE age &gt; 30 AND location = 'Delhi' AND subscription_status = 'Active';<\/code><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Efficient multi-column filtering without traditional index overhead.<\/span><\/p>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">Performance-Oriented Write Example<\/span><\/h3>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">BEGIN BATCH\r\n\r\nINSERT INTO orders (order_id, customer_id, amount) VALUES (uuid(), 'C001', 2500);\r\n\r\nINSERT INTO orders (order_id, customer_id, amount) VALUES (uuid(), 'C002', 1800);\r\n\r\nAPPLY BATCH;<\/code><\/pre>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Batching improves throughput and reduces latency.<\/span><\/p>\n<h3><span style=\"font-family: arial, helvetica, sans-serif;\">Dynamic Data Masking with Example<\/span><\/h3>\n<pre class=\"prettyprint language-default\"><code class=\"language-default\">-- Step 1: Create a table with sensitive data\r\nCREATE TABLE users (\r\n    id UUID PRIMARY KEY,\r\n    name TEXT,\r\n    email TEXT,\r\n    ssn TEXT\r\n);\r\n\r\n-- Step 2: Apply dynamic data masking to the 'ssn' column\r\nALTER TABLE users \r\nALTER ssn \r\nWITH MASKING = 'full';\r\n\r\n-- Step 3: Insert sample data\r\nINSERT INTO users (id, name, email, ssn) \r\nVALUES (uuid(), 'Alice', 'alice@example.com', '123-45-6789');\r\n\r\n-- Step 4: Query the data (masked view for non-privileged users)\r\nSELECT name, email, ssn FROM users;\r\n\r\n<\/code><\/pre>\n<h4><span style=\"font-family: arial, helvetica, sans-serif;\">Available Masking Functions:<\/span><\/h4>\n<ul>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_null<\/code>: Replaces with a null column.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_default<\/code>: Replaces with a fixed default value.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_replace<\/code>: Replaces with a specified value.<\/span><span style=\"font-family: arial, helvetica, sans-serif;\"><code class=\"language-default\"><\/code><\/span><span style=\"font-family: arial, helvetica, sans-serif;\"><code><\/code><\/span><span style=\"font-family: arial, helvetica, sans-serif;\"><code><\/code><\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_inner<\/code>: Masks all characters except the first and last character.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_outer<\/code>: Masks the first and last characters.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif;\"><code>mask_hash<\/code>: Returns a hashed blob of the value<\/span><\/li>\n<\/ul>\n<h4><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\">Next Steps<\/span><\/h4>\n<ol>\n<li><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\"><strong>Review your current Cassandra deployment<\/strong> and assess readiness for v5.0.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\"><strong>Plan for an additional data center<\/strong> to ensure zero latency impact during upgrade.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\"><strong>Schedule the upgrade<\/strong> within the recommended lenient window to avoid support gaps.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\"><strong>Monitor performance and availability<\/strong> post-upgrade using Azure observability tools.<\/span><\/li>\n<li><span style=\"font-family: arial, helvetica, sans-serif; font-size: 12pt;\"><strong>Explore new features<\/strong> like ACID transactions and SAI with test workloads.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-family: arial, helvetica, sans-serif;\">Learn more on <a href=\"https:\/\/cassandra.apache.org\/doc\/trunk\/cassandra\/new\/index.html#new-features-in-apache-cassandra-5-0\">Apache Cassandra v5.0<\/a> and start exploring Cassandra v5.0 in Azure today, refer <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/managed-instance-apache-cassandra\/create-cluster-portal#update-the-cassandra-version\">Quickstart: Create an Azure Managed Instance for Apache Cassandra Cluster from the Azure Portal | Microsoft Learn<\/a><\/span><\/p>\n<h2 id=\"about-azure-cosmos-db\">About Azure Cosmos DB<\/h2>\n<article id=\"post-10622\" class=\"middle-column pe-xl-198\" data-clarity-region=\"article\">\n<div class=\"entry-content sharepostcontent \" data-bi-area=\"body_article\" data-bi-id=\"post_page_body_article\">\n<p>Azure Cosmos DB is a fully managed and serverless distributed database for modern app development, with SLA-backed speed and availability, automatic and instant scalability, and support for open-source PostgreSQL, MongoDB, and Apache Cassandra. To stay in the loop on Azure Cosmos DB updates, follow us on\u00a0<a href=\"https:\/\/twitter.com\/AzureCosmosDB\" target=\"_blank\" rel=\"noopener\">X<\/a>,\u00a0<a href=\"https:\/\/aka.ms\/AzureCosmosDBYouTube\" target=\"_blank\" rel=\"noopener\">YouTube<\/a>, and\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/azure-cosmos-db\/\" target=\"_blank\" rel=\"noopener\">LinkedIn<\/a>.<\/p>\n<p>To easily build your first database, watch our\u00a0<a href=\"https:\/\/youtube.com\/playlist?list=PLmamF3YkHLoLLGUtSoxmUkORcWaTyHlXp\" target=\"_blank\" rel=\"noopener\">Get Started videos<\/a>\u00a0on YouTube and explore ways to\u00a0<a href=\"https:\/\/docs.microsoft.com\/azure\/cosmos-db\/optimize-dev-test\" target=\"_blank\" rel=\"noopener\">dev\/test free.<\/a><\/p>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Azure Managed Instance for Apache Cassandra Upgrade to Cassandra v5.0 is now generally available, bringing a host of powerful new features and performance improvements to your cloud-native applications. This release marks a significant milestone for developers and data platform teams looking to modernize their distributed data infrastructure. Why Upgrade to Cassandra v5.0? Cassandra v5.0 introduces [&hellip;]<\/p>\n","protected":false},"author":13641,"featured_media":10824,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12,16],"tags":[1079,499,1888,1891,1817],"class_list":["post-10809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements","category-cassandra-api","tag-apache-cassandra","tag-azure-cosmos-db","tag-azure-managed-instance-for-apache-cassandra","tag-cassandra-5-0","tag-cassandra-managed-instance"],"acf":[],"blog_post_summary":"<p>Azure Managed Instance for Apache Cassandra Upgrade to Cassandra v5.0 is now generally available, bringing a host of powerful new features and performance improvements to your cloud-native applications. This release marks a significant milestone for developers and data platform teams looking to modernize their distributed data infrastructure. Why Upgrade to Cassandra v5.0? Cassandra v5.0 introduces [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/users\/13641"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/comments?post=10809"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/posts\/10809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media\/10824"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/media?parent=10809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/categories?post=10809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cosmosdb\/wp-json\/wp\/v2\/tags?post=10809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}