Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

DynamoDB vs. Aerospike

The table below outlines key technology differences between Aerospike Enterprise Edition 7.2 and AWS DynamoDB 2019.11.x.

Data models

DynamoDB

Multi-model (key-value, document)

More detail
Aerospike

Multi-model (key-value, document, graph, vector)

More detail

Implications

Both offerings support multiple data models, enabling firms to support a wide range of applications that benefit from key-value and document structures. Aerospike also offers high-performance solutions for graph and vector data, while AWS introduces complexity to the overall architecture by only offering distinct services for graph and vector data independent of DynamoDB. Aerospike supports larger record (item) sizes, enabling simpler designs. Aerospike also provides more flexible and robust operations on complex data types, such as Maps and Lists, with capabilities to apply filtering, sorting, and range queries directly on these structures.

Deployment options

DynamoDB

AWS cloud only

More detail
Aerospike

On-prem, multi-cloud, hybrid

More detail

Implications

Aerospike supports more deployment options than DynamoDB, offering firms greater flexibility to tailor deployments for different applications and implement fail-over strategies spanning multiple cloud platforms or cloud and on-premises configurations. 

Storage model

DynamoDB

B-tree

More detail
Aerospike

Custom, high-performance format with storage engine choice

More detail

Implications

Aerospike enables users to tailor memory and storage options to fit their application and budget needs. This provides cost efficiency and predictability for high-performance applications at scale. Its internal storage format is optimized to exploit fast SSDs. Whereas insertions and deletions can trigger splits or merges for B-trees, leading to more disk I/O, especially in write-intensive workloads.

Client access

DynamoDB

Request router determines storage node to handle the request

More detail
Aerospike

Smart Client knows where every data element is minimizing network “hops”

More detail

Implications

Aerospike’s approach minimizes network traffic, enabling a client to access target data with a single network hop. The expectation of latency from DynamoDB is higher than that of Aerospike; having the Smart Client reduces Aerospike's overall latency and stabilizes it.

Scalability options

DynamoDB

Automatic horizontal scaling, data distribution

More detail
Aerospike

Vertical and horizontal scaling. Automatic data movement and automatic rebalancing when adding nodes

More detail

Implications

Cost-efficient use of hardware resources and self-managing features often enable Aerospike to deliver comparable or better performance on clusters with fewer nodes. This lowers total cost of ownership (TCO) and promotes ease of maintenance, including changes in cluster size.

Pricing

DynamoDB

Based on ops (reads/writes) and storage

More detail
Aerospike

Based on unreplicated (unique) data volume under management

More detail

Implications

DynamoDB offers two distinct pricing models to appeal to users with predictable or unpredictable throughput requirements. Careful understanding of which operations incur additional “request units” and which optional services are needed to support business requirements is essential for cost planning. Aerospike’s operational costs are typically easier to predict. Furthermore, Aerospike does not charge additional fees for backup / restore, data transfers to other regions, and caching configurations.

Availability

DynamoDB

High availability achieved with replication factor 3

More detail
Aerospike

High availability achieved with replication factor 2

More detail

Implications

Aerospike achieves durability and high availability with fewer replicas, reducing operational costs and energy consumption.

Consistency

(CAP Theorem approach)
DynamoDB

Eventual consistency and strong consistency modes

More detail
Aerospike

Both High Availability (AP) mode and Strong Consistency (CP) mode

More detail

Implications

Both platforms support high levels of consistency, including strong immediate consistency. Only Aerospike passed the Jepsen tests.

Multi-site support

DynamoDB

Global table can span multiple regions

More detail
Aerospike

Automated data replication across multiple clusters; A single cluster can span multiple sites

More detail

Implications

Global enterprises require flexible strategies for operating across data centers. Aerospike supports both synchronous and asynchronous data replication across multiple data centers in a variety of configurations. Firms can configure Aerospike clusters across sites, data centers, availability zones, regions, and even cloud providers simultaneously. This enables applications to customize deployments according to their resilience and availability needs.

Indexing

DynamoDB

Primary and secondary key access

More detail
Aerospike

Production-ready primary, secondary indexes

More detail

Implications

Aerospike and DynamoDB both support primary key access and secondary indexes to speed data retrieval. However, Aerospike gives firms more control over index storage (in RAM or on SSDs) to satisfy price/performance objectives. Furthermore, Aerospike’s secondary indexes support strong data consistency for both localized and multi-region scenarios but do not currently support sorting operations or using multiple secondary indexes in a single query.

Query language and capabilities

DynamoDB

Native API; SQL-compatible access via PartiQL

More detail
Aerospike

SQL-like capabilities and SQL connectors with broad data retrieval features

More detail

Implications

Both platforms support native query APIs and SQL (or SQL-compatible) access. Aerospike’s SQL support is limited to reads but features a broader range of data retrieval functions, various performance optimizations, and query federation. DynamoDB supports SQL-compatible read/write access with a subset of capabilities available through open-source PartiQL. Price/performance considerations of PartiQL should be carefully considered, as seemingly similar queries can result in considerably more resource usage.

Interoperability

(Ecosystem)
DynamoDB

Turnkey integration with many AWS services. Third-party offerings available.

More detail
Aerospike

Wide range of ready-made connectors available from Aerospike

More detail

Implications

Making critical business data quickly available to those who need it often requires integration with existing third-party tools and technologies. DynamoDB offers built-in integration with other popular AWS services; added fees for other services may apply. Aerospike offers performance-optimized connectors to many popular open-source and third-party offerings, including those not deployed on AWS. Some third-party offerings and open-source projects also offer connectors to DynamoDB; performance characteristics and features vary.

Caching and persistence options

DynamoDB

Persistent store; separate service available for caching

More detail
Aerospike

Easily configured as a high-speed cache (in-memory only) or as a persistent store

More detail

Implications

Aerospike’s flexible deployment options enable firms to standardize on its platform for a wide range of applications, reducing the overall complexity of their data management infrastructures. Many firms initially deploy Aerospike as a cache to promote real-time access to other systems of record or systems of engagement and later leverage Aerospike’s built-in persistence features to support additional applications. By contrast, DynamoDB is widely deployed as a persistent store. If needed, a specialized caching service (DAX) is available only to front-end DynamoDB.