Microsoft Docs

Azure Managed Instance for Apache Cassandra

Azure Managed Instance for Apache Cassandra is a fully managed, highly available, and scalable Apache Cassandra solution that can be deployed into an Azure Virtual Network. It provides the flexibility of open-source Cassandra while eliminating the operational burden of managing infrastructure.

Note: This service is designed for users who need to run Apache Cassandra on Azure without the complexities of self-hosting. It offers enterprise-grade features and integration with other Azure services.

Key Features

Getting Started

Begin your journey with Azure Managed Instance for Apache Cassandra by exploring the following resources:

1. Create a Managed Instance

Follow this quickstart guide to deploy your first Managed Instance for Apache Cassandra. This involves selecting region, cluster size, and other configuration options.

Deploy a Managed Instance (Quickstart) →

2. Connect to your Instance

Learn how to connect your applications and tools to your newly created Managed Instance. This typically involves using Cassandra drivers and connection strings.

Connect Applications (Quickstart) →

Use Cases

Azure Managed Instance for Apache Cassandra is ideal for a wide range of workloads, including:

Architecture Overview

The service abstracts away the underlying infrastructure. Each Cassandra cluster consists of multiple nodes organized into rings, providing high availability and fault tolerance. Data is distributed across these nodes using a consistent hashing algorithm.

Tip: Understand the Cassandra data modeling best practices to optimize performance and scalability for your specific use case.

Pricing

Pricing is based on the number of vCores, memory, and storage per node, as well as the duration of operation. You can estimate your costs using the Azure Pricing Calculator.

View Pricing Details →

Learn More

Dive deeper into the capabilities and advanced configurations of Azure Managed Instance for Apache Cassandra:

Example: Connecting with a Driver

Here's a simplified example of how you might connect to your Managed Instance using the DataStax C# Driver:

using Cassandra; using System; using System.Collections.Generic; // ... var options = new Cassandra.Policies.LoadBalancingPolicyOptions( default(string), default(string), default(int), default(int), default(int), default(int), default(int), default(int), default(int), default(int), default(int), default(string), default(string), default(string), default(string) ); var lbPolicy = new Cassandra.LoadBalancing.DCAwareRoundRobinPolicy(region); // Replace 'region' with your data center name var clientOptions = new Cassandra.Cluster.Builder() .AddContactPoint("your_managed_instance_ip_address") // Replace with your instance's contact point .WithPort(9042) // Default Cassandra port .WithAuthProvider(new Cassandra.PlainTextAuthProvider("your_username", "your_password")) // Use appropriate authentication .WithLoadBalancingPolicy(lbPolicy) .Build(); try { using (var session = clientOptions.Connect()) { Console.WriteLine("Connected successfully!"); // Execute your Cassandra queries here } } catch (Exception ex) { Console.WriteLine($"Connection failed: {ex.Message}"); }