The database for
AI context, state,
and results.
Store a 512 MiB source file or a few lines of agent state by key. Thunder confirms the write once its journal record is on disk.
Resume an agent run
Checkpoint · Run 007checkpoint.json
- Completed
- 2 steps
- Resume at
validate_batch
agents/run-007/rev-003
Extraction and normalization are saved. A replacement worker can start at validation.
Revision 03 codeInputs for the next model call
RAG source documents
Keep the source key with each chunk in your search index. After a match, fetch the original passage from Thunder so the model can cite it in context.
Client docsget-started.htmlLinux kernel 6.8 or newer on the Docker host or VM.
Read in context
Docker with Compose v2. Linux kernel 6.8 or newer on the Docker host or VM. A new container image does not update the host kernel.
sources/thunder-docs/v1Conversation history
Reopen a conversation with its messages and summary together. One read by session key gives your app the history it needs to build the next prompt.
Client docsThe write’s journal record reaches disk before the client receives acknowledgement.
sessions/setup-review/v1Audio, images, and video
Keep the original bytes after transcription or captioning. When you change models, the new one can read the same upload by key.
Client docsmedia/run-007/cueGenerated outputs
Pass a key between jobs. A reviewer can open the finished report, or a training job can load a serialized tensor without rerunning inference.
Client docsreadiness-report.mdDownload reportFor 512 MiB values, the documented configuration uses a 4 GiB arena per reactor.
report = db.get(key)results/run-007/reportRetry unfinished batch items
A classifier stops halfway through a queue. Save each ticket’s result under its own key. On restart, your worker reads the batch list and sends only the missing tickets back to the model.
See the Python exampletriage-042- Ticket 018
- Billing
- Ticket 019
- Access
- Ticket 020
- Retry
batches/triage-042/manifestReuse a model response
Key an answer by its model, prompt, input, and settings. An identical request can use the saved answer and skip the cost of another call.
Client docs| Parameter | Saved | Incoming |
|---|---|---|
| Model | model-v3 | model-v3 |
| Prompt | support-v3 | support-v3 |
| Input | input-018 | input-018 |
| Temperature | 0.2 | 0.2 |
Match. Return the saved CSV export instructions.
responses/model-v3/request-018Compare model runs
Prompt versions
Save the prompt version with each run. If an answer changes, you can see exactly which instructions the earlier run used.
Client docsAnswer using the supplied support notes.
Cite the source keys.
prompts/support/v3Evaluation records
Keep the test input, answers, and evaluator results under versioned keys. Revisit a failed case with the same input after you change models.
Client docs| Run | Answer excerpt | Mentions CSV? |
|---|---|---|
| A | “Open Settings.” | No |
| B | “Select Export, then CSV.” | Yes |
evals/support-v2/case-018Benchmark · 15 Nov 2026
Time to confirm a durable write
Writes only · 8 connections
TLS 1.3 · same VM
lower p99 for Thunderstrike
at 64 MiB in this run.
99% of writes finished within the time shown. Both bars use the same scale.
Both acknowledge after disk flush. Redis: appendfsync always. One short run per configuration; durations differ. Redis was faster at 256 B and 4 KiB.
At 256 and 512 MiB, Redis completed only 12–17 writes. Its reported p99 is the slowest write.
All measured values
| Value size | Thunderstrike | Redis 7.0.15 |
|---|---|---|
| 256 B | 7.04 | 1.07 |
| 4 KiB | 8.70 | 1.91 |
| 2 MiB | 38.9 | 121 |
| 16 MiB | 193 | 778 |
| 64 MiB | 655 | 2,929 |
| 256 MiB | 2,490 | 13,633 |
| 512 MiB | 3,080 | 27,333 |
At 256 and 512 MiB, Redis completed only 12–17 writes; p99 is its slowest write. Results depend on workload and hardware.
Make your first durable write.
Start Thunder with Docker. Choose a sample below, write it by key, and read it back from your server.
Client examplesWrite and read each sample in Python or Node.js.
First, start your server. Run the complete example from your configured release kit, using its CA certificate.
Save a checkpoint, then read the next step recorded by your application.
Python
pip install thunderstrikeStorage operations · with a connected client
key = b"agents/run-007/rev-003"
record = {
"schema": 1,
"revision": 3,
"next_step": "validate_batch",
"tool_result": "tools/run-007/results"
}
payload = json.dumps(record).encode("utf-8")
db.set(key, payload)
stored = db.get(key)
Full Python example
Run from your configured release-kit directory. The CA file must match your server.
import json
from thunderstrike import Thunderstrike
with open("docker/tls/ca.crt") as ca:
ca_pem = ca.read()
db = Thunderstrike(
"127.0.0.1:7380",
tls_server_name="localhost",
tls_ca_pem=ca_pem,
)
key = b"agents/run-007/rev-003"
record = {
"schema": 1,
"revision": 3,
"next_step": "validate_batch",
"tool_result": "tools/run-007/results"
}
payload = json.dumps(record).encode("utf-8")
db.set(key, payload)
stored = db.get(key)
if stored != payload:
raise RuntimeError("Stored bytes did not match")
state = json.loads(stored)
if state.get("schema") != 1:
raise ValueError("Unsupported record schema")
print(state["next_step"])Node.js
npm install @shortsqueeze/thunderstrikeStorage operations · with a connected client
const key = Buffer.from("agents/run-007/rev-003");
const record = {
"schema": 1,
"revision": 3,
"next_step": "validate_batch",
"tool_result": "tools/run-007/results"
};
const payload = Buffer.from(JSON.stringify(record));
await db.set(key, payload);
const stored = await db.get(key);
Full Node.js example
Run from your configured release-kit directory. The CA file must match your server. Save this as an ES module (.mjs).
import { readFileSync } from "node:fs";
import { ThunderstrikeClient } from "@shortsqueeze/thunderstrike";
const db = await ThunderstrikeClient.connect({
endpoints: ["127.0.0.1:7380"],
tlsServerName: "localhost",
tlsCaPem: readFileSync("docker/tls/ca.crt"),
});
const key = Buffer.from("agents/run-007/rev-003");
const record = {
"schema": 1,
"revision": 3,
"next_step": "validate_batch",
"tool_result": "tools/run-007/results"
};
const payload = Buffer.from(JSON.stringify(record));
await db.set(key, payload);
const stored = await db.get(key);
if (!stored || !stored.equals(payload)) {
throw new Error("Stored bytes did not match");
}
const state = JSON.parse(stored.toString("utf8"));
if (state.schema !== 1) {
throw new Error("Unsupported record schema");
}
console.log(state.next_step);validate_batchAfter running the complete example against your server.
Building in another language? See all nine official clients.