Skip to slide
116 / 221

CH 09 · Data Modeling for Agents · 10/12

Read as one page

Caching external calls

Agents lean on external APIs that are slow, rate-limited, or costly. A simple cache table, keyed by a deterministic request key, storing the response payload and an expiry, turns repeated identical calls into instant lookups and shields you from upstream limits. Index the expiry for cleanup. This is data modeling in service of reliability and cost (Chapters 13, 14).

Finished this idea?

Your learning progress stays in this browser.