Back

Blog details

Offloading LangGraph Agent Checkpoints to AIOZ Storage

AIOZ Network
6 min readAugust 21, 2026
aioz-storage
AIOZ Storage title card reading "LangGraph Checkpoints on AIOZ Storage" over curved bands of orange and green glass
Abstract data visualization with glowing connected points

You can offload LangGraph agent checkpoints to AIOZ Storage, but only the large ones. The DynamoDBSaver in langgraph-checkpoint-aws keeps every checkpoint up to 350 KB in DynamoDB and sends bigger ones to S3. AIOZ Storage can be that S3 tier.

TL;DR:

  • langgraph-checkpoint-aws's DynamoDBSaver stores checkpoints in DynamoDB and offloads anything larger than 350 KB (350 x 1,024 = 358,400 bytes) to S3, through an optional s3_offload_config with its own endpoint_url field.
  • The S3 client shares the same session and credentials as the DynamoDB client. You can't point DynamoDB at AWS and the S3 offload at AIOZ Storage with one credential set, because each service issues its own keys.
  • The workaround: run DynamoDB Local (an official AWS tool for development and testing, not production) next to AIOZ Storage, since DynamoDB Local doesn't need valid AWS keys.

Updated Nov 30, 2026: rechecked against langgraph-checkpoint-aws 1.3.0, corrected the offload threshold, followed one 500 KB checkpoint through the setup, added common mistakes.

How does LangGraph checkpointing work in langgraph-checkpoint-aws?

DynamoDBSaver is the main checkpoint saver in the official langgraph-checkpoint-aws package, and it decides where each checkpoint goes by size. A checkpoint of up to 350 KB is written straight into DynamoDB as an item. A larger checkpoint is uploaded to the S3 bucket you configure, and DynamoDB keeps only a pointer to that object.

That split follows AWS's own advice. DynamoDB caps an item at 400 KB, and AWS's guidance for bigger payloads is to store them in S3 and keep a pointer in DynamoDB. The package's source calls its 350 KB threshold "a safety margin below DynamoDB's 400KB item limit."

Take one example through this page: thread session-1, whose state has grown to a 500 KB checkpoint. At about 1 KB per chat message, 350 KB is roughly 350 messages of history. The saver uploads that checkpoint to the bucket and writes a pointer item to DynamoDB.

from langgraph_checkpoint_aws import DynamoDBSaver

checkpointer = DynamoDBSaver(
    table_name="my-checkpoints",
    region_name="us-west-2",
    s3_offload_config={"bucket_name": "my-checkpoint-bucket"},
)
Diagram of DynamoDBSaver routing a LangGraph checkpoint: one boto3 session builds the DynamoDB and S3 clients; checkpoints of 350 KB or less become DynamoDB items, checkpoints larger than 350 KB go to the S3 bucket on AIOZ Storage with a pointer item left in DynamoDB

Why can't DynamoDB on AWS and the offload on AIOZ Storage use one session?

The S3 side takes a custom endpoint_url inside s3_offload_config, and https://s3.aiozstorage.network is a valid value there. In version 1.3.0 (Nov 2026), though, the constructor builds the DynamoDB client and the S3 client from the same session, region_name and boto_config. Inside s3_offload_config you get only bucket_name, an optional key_prefix and endpoint_url, with no separate credential field.

DynamoDB on AWS needs AWS credentials, while AIOZ Storage needs its own access key and secret, issued from its dashboard rather than AWS IAM. One shared boto3.Session can't sign correctly for both, because the two services don't share a credential system. If you point the session at your AIOZ Storage keys, DynamoDB requests to AWS fail. If you point it at AWS keys, AIOZ Storage rejects the 500 KB upload for session-1.

How do you run DynamoDB Local with AIOZ Storage?

DynamoDB Local is the downloadable version of DynamoDB for building and testing apps. It needs an access key and a Region to name its database file, and its usage notes say these "don't have to be valid AWS values to run locally." So you can give the shared session your AIOZ Storage keys: DynamoDB Local accepts them, and AIOZ Storage checks them for real.

import boto3
from botocore.config import Config
from langgraph_checkpoint_aws import DynamoDBSaver

session = boto3.Session(
    aws_access_key_id="<your-aioz-storage-access-key-id>",
    aws_secret_access_key="<your-aioz-storage-secret-access-key>",
)

checkpointer = DynamoDBSaver(
    table_name="my-checkpoints",
    session=session,
    region_name="us-east-1",
    endpoint_url="http://localhost:8000",  # DynamoDB Local, ignores credential validity
    boto_config=Config(
        request_checksum_calculation="when_required",
        response_checksum_validation="when_required",
        s3={"addressing_style": "path"},
    ),
    s3_offload_config={
        "bucket_name": "my-checkpoint-bucket",
        "endpoint_url": "https://s3.aiozstorage.network",  # validated for real
    },
)

You still pass region_name, because boto3 builds each client with a Region even though neither DynamoDB Local nor AIOZ Storage is split by Region, the same placeholder pattern as in the FastAPI and boto3 file API guide. DynamoDB Local runs as a JAR or a Docker container, and it must be reachable at the endpoint_url you set.

The boto_config argument goes to both clients the saver creates. AIOZ Storage needs path-style URLs, because bucket subdomains don't resolve. It also needs a Content-Length header on uploads, which boto3 1.36.0 and later leave out unless both checksum settings say when_required (see AWS's data integrity settings and the botocore Config reference). We confirmed both endpoint behaviors on Oct 19, 2026, but a full offload with real keys hasn't been tested yet.

Common mistakes with the checkpoint offload

Each of these breaks the 500 KB upload for session-1 or keeps it longer than you meant:

  1. Using an access key ID with symbols. DynamoDB Local accepts an AWS_ACCESS_KEY_ID of letters and digits only, so check your AIOZ Storage key first.
  2. Swapping in ExtendDB. As of Nov 2026, AWS recommends ExtendDB for new local work, but it verifies every request's SigV4 signature, so it won't accept just any key.
  3. Trusting ttl_seconds untested. The saver tags offloaded objects with ttl-days and writes a tag-filtered lifecycle rule to the bucket. If the bucket refuses the rule, the saver only logs a warning and the object never expires.

Wiring the checkpointer into a graph

The checkpointer then plugs into LangGraph like any other:

from langgraph.graph import StateGraph

builder = StateGraph(int)
builder.add_node("add_one", lambda x: x + 1)
builder.set_entry_point("add_one")
builder.set_finish_point("add_one")

graph = builder.compile(checkpointer=checkpointer)
config = {"configurable": {"thread_id": "session-1"}}
result = graph.invoke(1, config)

This toy graph's integer state stays in DynamoDB Local as a plain item. The 500 KB checkpoint for session-1 would go to the AIOZ Storage bucket, with its pointer in DynamoDB Local, the same logic the package runs against AWS.

How AIOZ Storage handles the checkpoint offload

To the saver, AIOZ Storage is an S3 endpoint, https://s3.aiozstorage.network, reached with path-style addressing and an access key and secret created as an access grant in the dashboard. Large checkpoints then sit next to the rest of your super intelligence data on object storage, and AIOZ Storage protects each object with Reed-Solomon erasure coding.

The takeaway: AIOZ Storage can hold the checkpoints too big for DynamoDB, as long as the DynamoDB side accepts the same keys.

The AIOZ Storage Python SDK guide builds that client as a boto3 resource with region_name us-east-1, the endpoint URL and addressing_style path, the values the saver passes to both clients.

Frequently Asked Questions

Can AIOZ Storage fully replace DynamoDB for LangGraph checkpointing?
No. DynamoDBSaver uses DynamoDB as its primary store for every checkpoint up to 350 KB, so AIOZ Storage can't replace it. It serves only the S3 offload tier for larger checkpoints.

Why can't I point DynamoDB at AWS and the S3 offload at AIOZ Storage?
Both clients are built from the same boto3 session and credentials inside DynamoDBSaver, with no separate credential field for the S3 side. AWS IAM keys and AIOZ Storage keys aren't interchangeable, so one session can't sign for both.

What checkpoint size triggers the S3 offload?
Anything larger than 350 KB (358,400 bytes). The package sets that threshold as a margin under DynamoDB's 400 KB item size limit.

Is running DynamoDB Local in production a good idea?
AWS presents DynamoDB Local as a development and testing tool that you swap for the DynamoDB web service before production. Treat this pattern as a setup for development or a self-hosted deployment you've chosen on purpose.

Does the region_name parameter matter for AIOZ Storage or DynamoDB Local?
Not in practice, since neither service is split by Region, but boto3 needs some value to build each client.

Where do I get AIOZ Storage credentials for the S3 offload config?
Use the same S3 access key ID and secret access key as any other AIOZ Storage SDK setup, created as an access grant in the dashboard and covered in AIOZ Storage access control.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

Full vs Incremental vs Differential Backup Types Explained

Full vs incremental vs differential backup: what each run copies, how restore chains work, storage and time trade-offs, synthetic fulls and RPO/RTO fit.

aioz-storage
8 min readDecember 04, 2026
blog thumbnail

RAID vs Erasure Coding: Two Ways to Survive Disk Failure

RAID vs erasure coding: RAID guards the disks of one array, while erasure coding spreads k data and m parity pieces over nodes. Compare overhead and rebuilds.

aioz-storage
9 min readDecember 01, 2026
blog thumbnail

What Is Reed-Solomon Coding? The Math Behind Erasure Codes

Reed-Solomon coding turns k data pieces into n, and any k of them rebuild the original. See the polynomial math, GF(2^8), a demo and how AIOZ Storage uses it.

aioz-storage
7 min readNovember 27, 2026
blog thumbnail

RPO vs RTO Explained, With Backup and Restore Examples

RPO vs RTO: RPO caps how much data you can lose, RTO caps how long you can stay down. See how to calculate both, MTD, and the DR strategies that meet them.

aioz-storage
7 min readNovember 24, 2026
blog thumbnail

What Is AWS Signature Version 4? How S3 Requests Are Signed

AWS Signature Version 4 signs each S3 request with an HMAC key derived from your secret. See the four steps, a worked example and the errors that break it.

aioz-storage
7 min readNovember 20, 2026
blog thumbnail

Encryption at Rest vs in Transit, and What Each Protects

Encryption at rest vs in transit: at rest guards stored bytes from stolen disks, in transit guards requests on the network with TLS. See what each one misses.

aioz-storage
7 min readNovember 17, 2026