Engineering · Journal

Notes from inside the engine.

Pieces on multi-model storage, RAG primitives, vault security and what it takes to ship a database before 1.0. Subscribe via Atom feed.

Featured · 2026-06-09

RedDB on a Raspberry Pi: the smallest sane install

A weekend exercise — image a Pi 5, install RedDB, load a hundred thousand rows, and see what happens when document + vector + KV + blob all live on a $80 board under the desk.

By RedDB team · 4 min read Read →

Archive

  1. MAY 2026

    Agents · · 4 min

    Multi-agent shared memory — five agents, one knowledge graph

    When parallel sub-agents work on related slices of the same problem, they need a shared scratchpad with conflict resolution. A snapshot-read, first-committer-wins write pattern over RedDB gives each agent isolation while still surfacing contradictions as alerts on the orchestrator side.

  2. Agents · · 4 min

    Agent observability — traces, tokens, and costs in RedDB

    Most Claude Code setups can't answer "what did the agent cost me last sprint?" or "which tools dominate p99 latency?". A PostToolUse hook that writes every tool call, token count, and cost into RedDB turns those questions into one-line SQL.

  3. Agents · · 4 min

    An MCP server for RedDB — one database, every agent CLI

    The Model Context Protocol lets every modern agent CLI — Claude Code, Codex, Cursor, Gemini CLI — share the same toolbelt. Wrap RedDB once and you give all of them agent memory, document storage, and semantic search through a single endpoint. Manifest, server, wiring.

  4. Agents · · 5 min

    Building a "remember this" skill end-to-end

    A 30-minute walkthrough — turn a Claude Code skill into a durable note-taker. The skill captures the current conversation slice, embeds it, writes it to RedDB, and surfaces it on the next SessionStart. Every file you need, in order.

  5. Agents · · 5 min

    Slash commands with memory — commands that learn between sessions

    A Claude Code slash command is a markdown file with a shell expansion. Wire that shell call to RedDB and the command stops being a stateless macro — /remember, /forget, /recall become a tiny CRUD app the agent uses for itself.

  6. Agents · · 5 min

    Hooks that mutate state — making Claude Code hooks transactional with RedDB

    A PostToolUse audit-log hook looks trivial until the agent crashes mid-turn, the network blips, or Slack 503s. Wrap the side effects in a RedDB transaction with idempotency keys and a saga for the external call, and the hook stays honest.

  7. Agents · · 4 min

    Skills as data — storing metadata, runs, and learned refinements in RedDB

    Claude Code skills are static SKILL.md files today. Promote them to first-class data — metadata, execution traces, success rates — and the agent can pick the right skill for a new task with a SQL query instead of a keyword-match heuristic.

  8. Agents · · 8 min

    Agent SDK on RedDB: building custom agents with native persistence

    A walk through the four surfaces of a small Agent SDK — tool registry, memory adapter, conversation log, eval hooks — backed by RedDB instead of a stack of services. Ends with a working code-review bot in under 300 lines that remembers what it has reviewed, per repository.

  9. Engineering · · 11 min

    Chunking inside the engine: when the DB owns segmentation

    Most RAG stacks chunk in Python glue between Postgres and a vector store. The result is a second pipeline that drifts. This post walks through what it looks like when chunking is a declarative rule attached to a column, reranking is a query operator, and the engine — not the application — owns segmentation.

  10. Engineering · · 8 min

    Hybrid search done right: lexical, vector, and filter in one plan

    A walk through the RedDB query planner fusing BM25, vector similarity, and a structured filter into a single execution plan — with EXPLAIN output, the cost model behind it, and what happens on the edge cases that trip up naive two-stage rerankers.

  11. Engineering · · 14 min

    One WAL, four data models: how cross-modality transactions actually work

    A deep dive into the shared write-ahead log that lets a document update, a vector insert, a KV write, and a blob commit land in the same transaction. Record layout, the fsync contention tradeoff, and the four mitigations we shipped before the tail latency became someone else's incident.

  12. Migration · · 9 min

    Postgres + pgvector → RedDB: a migration playbook with wall-clock numbers

    A step-by-step playbook for moving a production Postgres + pgvector workload to RedDB — dual-write, embedding backfill, query translation, cutover, rollback — with measured timings from a 12M-row test corpus and the three places teams trip over.

  13. Security · · 12 min

    Threat model: what RedDB protects against (and what it doesn't)

    An honest STRIDE walkthrough of the RedDB engine and vault. What the database protects against (cold-storage breach, replicated-secret leakage, key compromise during rotation) and what it does not (compromised application process, host-level side channels, malicious operator). Gaps are named, not hidden.

  14. Agents · · 4 min

    RedDB as Claude Code's memory backend — beyond CLAUDE.md

    Swap the static MEMORY.md file for a queryable, embeddable memory layer. A SessionStart hook reads top-K memories into context, a /remember slash command writes them, and RedDB stores rows, vectors, and audit log in one transaction.

  15. Engineering · · 1 min

    Hello from inside the engine

    A first note on what we're building and why a multi-model engine matters in 2026.

  16. Engineering · · 10 min

    Stop stitching Postgres, pgvector, S3, and Redis

    Every modern app you ship is four databases in a trenchcoat. Here is the bill — in failure surfaces, ops playbooks, and consistency models — that nobody costs out before signing.

  17. Engineering · · 7 min

    The tradeoffs we made to fit four engines in one

    Document, vector, KV and blob in the same transaction is not free. Here's the per-modality tuning surface we cut, the plugin story we sacrificed, and the cold-blob latency tail we accepted.

  18. RAG · · 8 min

    RAG without a second database

    When your vectors live on the same row as the document they describe, the entire CDC-and-backfill layer of a RAG pipeline disappears — and a class of stale-retrieval bugs goes with it.

  19. Security · · 7 min

    Per-row encryption with zero-downtime key rotation

    How the vault keeps reads hot during rotation, and the one knob you should never touch in production.

  20. Field reports · · 7 min

    Notes from compaction hell

    Three months of LSM compaction tuning at production scale — the latency tail we measured, the four configuration changes that actually moved P99, and the one we wish we'd made on day one.

  21. Migration · · 9 min

    When NOT to migrate: a checklist

    The companion piece to every migration post. A decision tree for staying on your current stack — team size, pain quantification, runway — so you do not pay migration tax for a problem you did not have.

  22. Security · · 10 min

    GDPR right-to-erasure when your data is replicated and embedded

    Article 17 across replicas, derived embeddings, backups, and WAL — what RedDB does automatically and what still needs an operator runbook.

  23. Field reports · · 6 min

    Snapshot isolation, in practice

    What snapshot isolation gives you, what it doesn't, the write-skew anomaly that still bites, and the one application pattern that fixes most real cases.

  24. Security · · 9 min

    BYOK, KMS, and the boring parts of multi-tenant secrets

    AWS KMS, GCP KMS, and HSM integration for RedDB — plus the three failure modes nobody writes about until they happen at 03:00.

  25. APR 2026

    Migration · · 6 min

    MongoDB → RedDB: the queries that change shape

    Idiomatic translations from MongoDB to RedDB for the patterns that actually appear in production code — aggregation pipelines, change streams, GridFS, and the three places where the literal translation is wrong.

  26. Operations · · 9 min

    Disaster recovery for RedDB: PITR, snapshots, regional failover

    An operator playbook for RedDB disaster recovery — point-in-time restore with example commands, snapshot scheduling, cross-region replication topology, the RPO/RTO numbers you can actually hit, and an honest list of what we don't yet do.

  27. Migration · · 8 min

    Out of Firebase, into a real backend

    A migration playbook for teams that outgrew Firebase — auth bridge, Firestore doc model, security rules, real-time — and an honest look at what you lose when the magic console goes away.

  28. RAG · · 6 min

    The drift window: why your RAG retrieves stale chunks

    A customer-visible failure mode unique to two-store RAG — source updates, queue lag, retrievals against the old embedding. Anatomy of one outage and how same-transaction writes eliminate the window.

  29. RAG · · 7 min

    Building an agent memory layer on RedDB

    A copy-pasteable schema for episodic, semantic, and procedural memory in a single database — with the queries that retrieve them and the bookkeeping that keeps them honest.

  30. Operations · · 7 min

    Self-hosting RedDB: the real-world checklist

    An operator-grade checklist for running RedDB on your own infrastructure — container images, k8s manifests, volume sizing, monitoring, backups, network policies, and the secrets-management decisions that bite later.

  31. Engineering · · 9 min

    Why 'best of breed' loses at small scale

    The ops cost of running four engines instead of one, measured in person-hours at team sizes of 2, 5, and 15 engineers. Multi-model isn't only a scale concern — it's a small-team unlock.

  32. Engineering · · 9 min

    When you don't need RedDB

    An honest list of workloads where Postgres + pgvector, SQLite, or a single-purpose store will serve you better than RedDB. If your shape is on this list, save yourself the migration.

Browse all posts →

© 2026 RedDB.io. AGPL-3.0 self-host · Managed Cloud.