Skip to main content
Aerospike is a high-performance, distributed NoSQL database designed for real-time applications at scale. It provides sub-millisecond latency, strong consistency, and automatic data distribution across clusters, making it well-suited for AI workloads that require fast, reliable state persistence.
Aerospike features a shared-nothing architecture with linear horizontal scaling, a Hybrid Memory Architecture (DRAM indexes with SSD/NVMe data storage), tunable strong or relaxed consistency per namespace, built-in TTL for automatic record expiration, active-active cross-datacenter replication, and multi-model support for key-value, document, graph, and vector data. The Aerospike LangGraph integrations provide a checkpointer for persisting graph execution state and a store for long-lived agent data such as user profiles, extracted entities, and cached tool outputs.

Get started

The implementation is available in the aerospike-community/aerospike-langgraph repository. It includes a Docker-based Aerospike setup, reference implementations of AerospikeSaver and AerospikeStore, and basic tests that exercise checkpoint resume, TTL behavior, and namespace-scoped store access. To try it, start an Aerospike container, configure the saver and store in a LangGraph app, and run the included examples to observe execution recovery and agent state persistence.

Installation

Install both packages:

Run Aerospike locally

Start Aerospike using the Aerospike Docker Image:

Configuration

Both the store and checkpointer use the same Aerospike connection settings:

LangGraph checkpointer

The Aerospike checkpointer persists LangGraph execution state and enables resume from any checkpoint.

LangGraph store

The Aerospike store is used for long-lived agent data such as user profiles, extracted entities, and cached tool outputs.

Resources