Skip to content

Operate Redis Streams

Redis carries audit, invalidation, revocation, agent, invocation, and delegation streams. It is correctness-critical, not an evictable cache.

Use Streams, authentication, persistence, maxmemory-policy noeviction, and enough memory. The bundled image uses AOF with appendfsync everysec; validate external services separately.

Provisioning is automatic in the bundled stack. From a checkout:

Terminal window
bash infra/redis/provision-streams.sh
bash infra/redis/scripts/verify.sh

Provide Redis host, port, and password file when needed. Monitor stream length, groups, pending entries, reclaim/retry, DLQ, memory, persistence, and latency.

Confirm expected streams/groups, idempotent provisioning, noeviction, persistence, and policy/revocation/audit delivery.

Restore Redis, verify groups, then drain consumers and replay. Reconcile Postgres outboxes and replay directories. Never delete pending entries or reset groups until durable handling is proven.

Use Scale Capacity when lag or memory grows.