Model Serving · Data store

Response Cache

Data storeModel ServingModelsVariation point (abstract)arc:ResponseCache

A cache of complete agent/LLM responses keyed by (normalized) query so repeated requests are answered without inference.

Responsibility. Serves previously computed responses for repeated queries without inference.

Also known as: LLM response cache, Query result cache, Cached-result fallback, Application-Level Response Cache, Result caching, Generated response cache, Request caching, Multi-stage caching

is read by; is written bycachescachesis read byis written byis configured byis specialized byis specialized byis specialized byis specialized byis written byAgent Controller: is read by; is written byAgent ControllerLLM Inference Service: cachesLLM Inference ServiceRAG Query Orchestrator: cachesRAG Query OrchestratorModel Router: is read byModel RouterCache Invalidator: is written byCache InvalidatorCache Policy: is configured byCache PolicyDistributed Response Cache: is specialized byDistributed Response CacheIn-Process Response Cache: is specialized byIn-Process Response CacheSemantic Cache: is specialized bySemantic CacheDatabase Response Cache: is specialized byDatabase Response CacheCache Warmer: is written byCache Warmer
Direct neighbourhood (hover for relationship types)

Variants

VariantWhen to choose
Database Response CacheChoose when audit requires persisting all outputs, capacity exceeds practical RAM, cache updates must be atomic with other data, or SQL querying of cached data is needed.
Distributed Response CacheChoose for horizontally scaled systems with >20% query repetition or where cache must survive instance restarts.
In-Process Response CacheChoose for single-instance deployments, session-scoped data, or sub-millisecond latency needs where even Redis overhead matters.
Semantic CacheChoose when users ask the same questions in different wording and incremental savings exceed embedding costs.

Relationships

is configured by structural

caches dependency

is read by dependency

is written by dependency

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Multi-layer cachingWrite-throughWrite-behindCache-asideQuery normalizationLRU evictionTTL expirationAsymmetric TTL per layer
Quality attributes
Cost efficiencyPerformance efficiency (ISO/IEC 25010)
Risks mitigated
Redundant inference costServing stale answers (with invalidation)Stale cached answers after underlying information changesRedundant LLM callsRunaway generation cost

Sources

  1. Ch1.8: T. Nguyen, "Scalability and Production Deployment," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 1.8. ISBN: 9798244538229.
  2. Ch2.8: T. Nguyen, "Error Handling and Resilience," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.8. ISBN: 9798244538229.
  3. Ch2.9: T. Nguyen, "Streaming and Real-Time Responses," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.9. ISBN: 9798244538229.
  4. Ch3.4: T. Nguyen, "Tuning Model Parameters for Production Performance," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.4. ISBN: 9798244538229.
  5. Ch3.10: T. Nguyen, "Efficiency Metrics," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.10. ISBN: 9798244538229.
  6. Ch6.5: T. Nguyen, "Production RAG Systems," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 6.5. ISBN: 9798244538229.
  7. Ch10.1: T. Nguyen, "Conversational UI," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 10.1. ISBN: 9798244538229.
  8. Ref7.15: "Advanced Agentic AI Optimization Techniques," unpublished reference note (15-Advanced-Agentic-Optimization.md), Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam supplementary materials, 2026. unpublished note
  9. Ref7.18: "Chapter 7 Summary: NVIDIA Platform Implementation," unpublished reference note (18-Chapter-7-Summary.md), Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam supplementary materials, 2026. unpublished note
  10. Ref8.05: "Cost Optimization and Resource Monitoring for Agent Systems," unpublished reference note (05-Cost-Optimization-Resource-Monitoring.md), Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam supplementary materials, 2026. unpublished note