All Questions
Agents And Tool Use medium

Your agent platform implements approval gates by having the worker thread poll an approvals table until a human clicks Approve. Median approval time is 12 minutes. Under load, the worker pool is exhausted and new agent runs queue for a long time. What is the right redesign?

  1. A Increase the worker pool size and polling interval so that waiting agents consume fewer resources while blocked on humans.
  2. B Persist the agent's transcript and pending call, release the worker, and resume the loop from that checkpoint on approval.
  3. C Let the model continue executing subsequent steps optimistically while approval is pending, rolling back if it is denied.
  4. D Set a short approval timeout so that requests without a quick human response are auto-approved and the worker is freed.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions