Skip to content

Cache vs Persistence

Caching is for fast, short-lived decisions. Persistence is for durable replay and auditability. This table clarifies when each is the right tool.

CapabilityCache pluginPersistence plugin
Re-entrancy protectionStrongStrong
Replay from a stepGood with versioned keysBest (durable storage)
Cost controlTTL / evictionStorage grows unless pruned
Cross-service sharingRedis backendNative (DB-backed)
AuditabilityLimitedFull (history preserved)
Operational complexityLow to mediumMedium to high

Guidance

  • Use cache for re-entrancy, retries, and fast guards around expensive steps.
  • Use persistence when you need full replayability, lineage, and audits.
  • For Search, use persistence for Crawl/Parse and cache for Tokenize/Index.