Diagrid
Back to State Stores & Persistence
State Stores & Persistence

When should I use a cache vs a system of record for agent state?

You should use a cache for transient, easily regenerated agent state, while critical durable agent state belongs in a system of record. Caches provide fast access to frequently used non-critical data like important recent conversation snippets, while systems of record store immutable, critical state such as workflow execution history or core business data. You should not use a cache as the sole storage for state requiring long-term durability or auditability.

Was this article helpful?

Your feedback helps improve Diagrid's FAQ experience.

Keep reading

More Diagrid FAQ articles

View all