Scaling · 2026-09-06

Your agent re-embeds the same product catalog on every request to answer questions, and traffic is climbing…

Your agent re-embeds the same product catalog on every request to answer questions, and traffic is climbing fast.

  1. ABuy a higher rate limit from the provider.
  2. BCache the repeated, unchanging work so it isn’t recomputed every request.
  3. CSwitch to a faster embedding model and add more server replicas, so re-embedding on every request keeps up with traffic.
  4. DAdd more server replicas.

Answer: B

Cache the repeated, unchanging work so it isn’t recomputed every request.

Why

Repeated identical work should be cached, not recomputed. Caching cuts cost and latency at the source; more hardware or a faster model just pays to redo the same work.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path