Amazon Keyspaces: What It Is and When to Use It

Definition

Amazon Keyspaces (for Apache Cassandra) is a scalable, highly available, and fully managed Apache Cassandra-compatible database service from Amazon Web Services (AWS). It allows you to run your Cassandra workloads on AWS without the operational overhead of managing infrastructure, such as provisioning servers, patching software, or configuring clusters.

How It Works

Amazon Keyspaces operates on a serverless architecture, meaning you don't interact with or manage any underlying servers. You interact with the service using the same Cassandra Query Language (CQL) API, application code, and developer tools you use with Apache Cassandra. Data is organized into keyspaces and tables, just like in Cassandra.

Under the hood, AWS handles all infrastructure management. Data is automatically replicated three times across multiple AWS Availability Zones (AZs) for high availability and durability. As your application traffic and data volume grow, Keyspaces automatically scales throughput and storage to meet demand, providing consistent, single-digit millisecond latency.

Security is managed through integration with AWS Identity and Access Management (IAM) for granular access control to keyspaces and tables. Data is encrypted by default, both at rest and in transit. The service also integrates with other AWS services like Amazon CloudWatch for monitoring and AWS PrivateLink for secure, private connectivity from your Virtual Private Cloud (VPC).

Key Features and Limits

  • Cassandra Compatibility: Compatible with the CQL 3.11 API, allowing you to use existing Cassandra drivers and tools.
  • Serverless Architecture: No servers to manage, patch, or scale. The service automatically scales to handle traffic.
  • Capacity Modes: Offers two pricing models to optimize costs:
    • On-Demand: Pay-per-request for read and write throughput. Ideal for new applications or workloads with unpredictable traffic.
    • Provisioned: Specify the number of reads and writes per second in advance. Best for predictable workloads and can be combined with Auto Scaling.
  • Performance at Scale: Delivers single-digit millisecond read and write performance with virtually unlimited throughput and storage.
  • High Availability: Designed for 99.999% availability with optional multi-Region replication for even greater resilience and low-latency local reads and writes.
  • Security: Integrates with AWS IAM for access control. All data is encrypted at rest and in transit by default.
  • Point-in-Time Recovery (PITR): Protects tables from accidental writes or deletes by enabling continuous backups. You can restore your table data to any second in the preceding 35 days.
  • Time to Live (TTL): Automatically expire and delete data from your tables, which is useful for managing the lifecycle of time-series data or session information.
  • Keyspaces Streams: A change data capture (CDC) feature that captures item-level modifications in your tables and streams them for use cases like real-time analytics or event-driven architectures.
  • Service Quotas: Default limits include a maximum row size of 1 MB and a partition key size of 2048 bytes. Throughput per partition is limited to 1,000 WCUs/WRUs and 3,000 RCUs/RRUs per second. Many quotas, such as the number of tables and keyspaces per region, are adjustable.

Common Use Cases

  • Migrating Cassandra Workloads: The primary use case is lifting and shifting existing self-managed Apache Cassandra workloads to the cloud to reduce operational burden and cost.
  • High-Throughput Applications: Ideal for applications that require high-speed data processing and low-latency access, such as trade monitoring, fleet management, and industrial IoT.
  • Time-Series Data: Storing large volumes of time-series data, like IoT sensor readings, application logs, or user activity tracking, where query patterns often involve a wide-row model.
  • Building with Open-Source Standards: For development teams who want to build on AWS using open-source Cassandra APIs and drivers without managing the database infrastructure themselves.

Pricing Model

Amazon Keyspaces pricing is based on the resources you consume, with no upfront costs. It offers two capacity modes:

  1. On-Demand Mode: You are charged for the read and write requests your application performs. Reads are billed in Read Request Units (RRUs), and writes are billed in Write Request Units (WRUs). This model is best for unpredictable or spiky workloads, as it automatically scales to meet demand.
  2. Provisioned Mode: You specify the throughput capacity you need in terms of Read Capacity Units (RCUs) and Write Capacity Units (WCUs). This is more cost-effective for applications with predictable traffic. You can use Application Auto Scaling to adjust provisioned capacity automatically.

Other charges include data storage per GB-month, continuous backups for Point-in-Time Recovery (PITR), and data transfer out to the internet. There are no charges for data transfer between Keyspaces and other AWS services within the same Region. A free tier is available for the first three months. For long-term, predictable workloads, Database Savings Plans can offer a discount in exchange for a one-year commitment.

For detailed pricing, always consult the official AWS Pricing Calculator.

Pros and Cons

Pros:

  • Reduced Operational Overhead: Being fully managed and serverless, it eliminates the need for database administration tasks like provisioning, patching, scaling, and backups.
  • Cassandra Compatibility: Allows developers to leverage existing Cassandra skills, drivers, and tools, simplifying migration and development.
  • Scalability and Performance: Offers virtually unlimited scale with consistent single-digit millisecond latency, suitable for demanding applications.
  • High Availability and Durability: Automatic multi-AZ replication and features like multi-Region replication and PITR provide strong data protection.
  • Integrated AWS Security: Leverages IAM, VPC endpoints, and default encryption for a secure database environment.

Cons:

  • Incomplete Cassandra Feature Parity: It is not a 100% drop-in replacement for Apache Cassandra. It lacks support for features like materialized views and has different performance characteristics for lightweight transactions (LWTs).
  • Limited Control: As a managed service, you do not have node-level access or control over low-level configurations like compaction strategies or JVM tuning.
  • Potential for Vendor Lock-in: While it uses an open-source API, the managed service itself is proprietary to AWS, which can make migrating away more complex than from a self-hosted solution.
  • Cost Complexity: For high-throughput workloads, understanding the nuances between on-demand and provisioned pricing, and how operations translate to RRUs/WRUs, is crucial to avoid unexpected costs.

Comparison with Alternatives

Amazon Keyspaces vs. Self-Managed Cassandra on Amazon EC2

  • Management: Keyspaces is fully managed and serverless, while Cassandra on EC2 requires you to handle all aspects of installation, configuration, scaling, patching, and backups.
  • Control: Self-hosting gives you complete control over the Cassandra version and all configuration settings. Keyspaces abstracts this away for simplicity.
  • Cost: Keyspaces follows a pay-for-what-you-use model for throughput and storage. With EC2, you pay for the underlying instances, storage, and data transfer, which can be cheaper for high, steady-state workloads but requires more capacity planning.
  • Choose Keyspaces when: You want to minimize operational overhead and leverage a serverless model for a Cassandra-compatible API.
  • Choose Cassandra on EC2 when: You need full control over the database configuration, require specific Cassandra features not supported by Keyspaces, or have existing operational expertise.

Amazon Keyspaces vs. Amazon DynamoDB

  • API Model: Keyspaces uses the Cassandra Query Language (CQL) API. DynamoDB has its own proprietary API.
  • Data Model: Both are NoSQL databases. Keyspaces is a wide-column store based on the Cassandra model. DynamoDB is a key-value and document database. The row size limit in Keyspaces is 1 MB, while DynamoDB's item size limit is 400 KB.
  • Use Case Focus: Keyspaces is the clear choice for migrating existing Cassandra applications to AWS. DynamoDB is a general-purpose NoSQL database deeply integrated with the AWS ecosystem, often chosen for new cloud-native applications.
  • Choose Keyspaces when: Your team has Cassandra expertise, you are migrating an existing Cassandra workload, or your data model is a natural fit for CQL and wide rows.
  • Choose DynamoDB when: You are building a new serverless application, need deep integration with services like AWS Lambda and AppSync, or your access patterns fit its key-value model.

Exam Relevance

Amazon Keyspaces is a relevant topic for several AWS certifications, particularly those focused on databases, development, and architecture.

  • AWS Certified Database - Specialty (DBS-C01): Expect in-depth questions on migration strategies from Cassandra, feature comparisons, performance tuning, security, and operational management within Keyspaces.
  • AWS Certified Solutions Architect - Associate (SAA-C03) / Professional (SAP-C02): Questions may focus on selecting the right database for a given scenario, comparing Keyspaces with DynamoDB and self-managed options, and understanding its use cases for scalable, highly available applications.
  • AWS Certified Developer - Associate (DVA-C02): Knowledge of Keyspaces is relevant for developers building applications that require a managed NoSQL database, especially when migrating from or using Cassandra-compatible tools.

Examinees should know its core value proposition (managed Cassandra), key features (serverless, capacity modes, PITR), primary use cases (migration, time-series), and how it differs from DynamoDB and self-managed Cassandra.

Frequently Asked Questions

Q: Is Amazon Keyspaces fully compatible with Apache Cassandra?

A: Amazon Keyspaces is compatible with the Cassandra Query Language (CQL) API, supporting most common data plane operations like reading and writing data. However, it is not a drop-in replacement and does not support all Cassandra features, such as materialized views or certain administrative commands that require node-level access. A thorough compatibility assessment is recommended before migration.

Q: How do I migrate from an existing Cassandra cluster to Amazon Keyspaces?

A: AWS provides several tools and strategies for migration. For smaller datasets, you can use open-source tools like cqlsh COPY or DSBulk. For larger, online migrations with minimal downtime, a common strategy involves a dual-write period where the application writes to both the old cluster and Keyspaces simultaneously while historical data is migrated in the background. AWS also offers tools like AWS Glue and open-source utilities like CQLReplicator to assist with near real-time data migration.

Q: When should I choose Amazon Keyspaces over Amazon DynamoDB?

A: Choose Amazon Keyspaces primarily when you are migrating an existing Apache Cassandra workload to AWS or if your development team has strong Cassandra expertise and wants to use CQL and Cassandra-compatible tools. Its wide-row storage model can also be a natural fit for certain time-series use cases. Choose DynamoDB for new cloud-native applications that need a flexible key-value/document store with deep integration into the AWS serverless ecosystem (e.g., AWS Lambda).


This article reflects AWS features and pricing as of 2026. AWS services evolve rapidly — always verify against the official AWS documentation before making production decisions.

Published: 5/6/2026 / Updated: 5/11/2026

This article is for informational purposes only. AWS services, pricing, and features change frequently — always verify details against the official AWS documentation before making production decisions.

More in Databases