Keploy as a DynamoDB testing framework
Keploy mocks DynamoDB by recording the AWS SDK's HTTP traffic, capturing the items, capacity metadata, and pagination tokens the service returned, then replaying them in tests. No DynamoDB Local runs, no table is defined, and no AWS credentials are needed.
keploy record -c "./orders-service"What Keploy gives a DynamoDB team
Captured at the DynamoDB HTTP API
The AWS SDK talks to DynamoDB over HTTPS with a JSON protocol, so Keploy records the real exchange — items in their attribute-value encoding, consumed capacity, and LastEvaluatedKey included.
- Below every AWS SDK language binding
- Attribute-value types preserved
- ConsumedCapacity captured
- Pagination tokens replayed
Why DynamoDB integration tests slow teams down
The friction is rarely the assertions. It is everything around them — spinning up dependencies, keeping mocks honest, and repairing tests after every refactor.
Testing DynamoDB: by hand, with DynamoDB Local, or with Keploy
DynamoDB Local is a separate implementation that still needs tables created per environment. Keploy records the managed service once and replays exactly what it returned.
Select any row for the full comparison, with code.
What you write for DynamoDB vs what Keploy records
All three produce the same assertion. Only the third still passes after the next refactor without anyone editing it.
Attribute-value marshalling, condition expressions, and key schema validation are all absent, so a type coercion bug reaches production unseen.
Real SDK marshalling against a local endpoint — and it needs a running process plus table and index creation before every run.
The N value replays as the string DynamoDB really sends, so the SDK's marshalling runs on every replay instead of being bypassed.
Times are estimates for authoring one endpoint’s coverage from scratch, not measurements.
DynamoDB testing tools, compared
The options a team on document and wide-column stores actually reaches for, and where each one genuinely wins. Select a row for the full comparison.
Assessments reflect each tool’s documented behaviour, not benchmark measurements.
Record your DynamoDB app once, replay it forever
Keploy sits below your DynamoDB process at the network layer. It watches the calls your app already makes, then serves them back on replay so tests run with no dependencies attached.
Keploy records a GET call to /api/v1/orders/{id} on a DynamoDB service and captures the dependency calls it makes.
DynamoDB clients Keploy records, driver by driver
Keploy captures DynamoDB at the wire protocol, so 4 of these 6 clients need no adapter, no test double, and no DynamoDB instance in CI.
- Auto-mocked
GoView page
aws-sdk-go-v2 dynamodb and attributevalue
- Auto-mocked
PythonView page
boto3 and aioboto3
- Auto-mocked
Node.jsView page
@aws-sdk/client-dynamodb and DocumentClient
- Auto-mocked
JavaView page
the AWS SDK v2 DynamoDbClient and Enhanced Client
- Partial
.NETView page
AWSSDK.DynamoDBv2
- Partial
Amazon S3
S3 REST API via the same SDK
Your first DynamoDB test suite in under five minutes
Every command below runs against your existing DynamoDB service. Nothing in your source tree changes.
1Install the Keploy CLI
A single binary. It needs a Linux kernel with eBPF support, or Docker on macOS and Windows — and it adds nothing to your project's dependencies.
curl -sSL https://keploy.io/install.sh | bash2Record your service
Pass the command you already use to start the app. Keploy runs it and watches every socket it opens.
keploy record -c "./orders-service"3Exercise the paths you care about
Run the app against your development table. Every GetItem, Query, and PutItem, with the response the service returned, is captured together.
curl localhost:8080/orders/ord_1curl -X POST localhost:8080/orders/ord_1/confirm -d '{"paymentToken":"tok_123"}'4Replay in CI
Replay serves the recorded dependency responses, so the job needs no service containers and no Docker daemon.
keploy test -c "./orders-service" --delay 8
Ready to try it on your own DynamoDB service?
Works with the rest of your DynamoDB stack
Keploy records at the network layer, so framework and driver choices inside your DynamoDB app do not change how it captures traffic.
Go
aws-sdk-go-v2 calls record at the HTTP layer.
Python
boto3 traffic records without a client wrapper.
Node.js
DocumentClient calls record with full attribute values.
Java
The Enhanced Client records as the API calls it makes.
AWS Lambda
Handlers record the same way any process does.
PostgreSQL
The database page covers protocol-level capture in depth.
Testing the rest of your stack
- Databases
Keploy as a PostgreSQL testing framework
Record the Postgres frontend/backend protocol once and replay real result sets in tests — no container, no pg-mem, no schema to rebuild.
Read the guide - Databases
Keploy as a MongoDB testing framework
Mock MongoDB at the wire protocol — real documents, real BSON types, real aggregation results — without a mongod binary in CI.
Read the guide - Languages
Keploy as a Go testing framework
Record a running Go binary once and get table-test-grade coverage with sqlmock-free database stubs and no httptest servers to maintain.
Read the guide - Languages
Keploy as a Python testing framework
Turn the requests your Python service already handles into a pytest-grade regression suite, with every dependency mocked from the recording.
Read the guide - Languages
Keploy as a Node.js testing framework
Replace nock registrations and in-memory database fixtures with tests recorded from the traffic your Node service already serves.
Read the guide - Languages
Keploy as a Java testing framework
Generate JUnit-grade integration tests for any JVM service by recording the traffic it already serves.
Read the guide
Join our GlobalCommunity
Connect with developers worldwide. Follow updates, ask questions, share feedback, and ship faster with other Keploy builders.
“Best report of integration and API tests I've seen — which we don't get from RestAssured.”
G2“Future of microservices testing. I don't write tests now!”
G2 · 5/5“An amazing product that simplifies the automation.”
Gartner · 4.0