Operate Redis Streams
Redis carries audit, invalidation, revocation, agent, invocation, and delegation streams. It is correctness-critical, not an evictable cache.
Prerequisites
Section titled “Prerequisites”Use Streams, authentication, persistence, maxmemory-policy noeviction, and enough memory. The bundled image uses AOF with appendfsync everysec; validate external services separately.
Procedure
Section titled “Procedure”Provisioning is automatic in the bundled stack. From a checkout:
bash infra/redis/provision-streams.shbash infra/redis/scripts/verify.shProvide Redis host, port, and password file when needed. Monitor stream length, groups, pending entries, reclaim/retry, DLQ, memory, persistence, and latency.
Verify
Section titled “Verify”Confirm expected streams/groups, idempotent provisioning, noeviction, persistence, and policy/revocation/audit delivery.
Recovery
Section titled “Recovery”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.
Next Step
Section titled “Next Step”Use Scale Capacity when lag or memory grows.

