Skill 3.2.1
Optimize task duration, including parallelism and rate limits
Key Concepts
Traces show the duration of each agent, model call and tool call, which identifies the critical path. Independent steps run in parallel (fan-out and aggregate), simple steps use faster models or lower reasoning effort, and streaming reduces perceived latency for the final answer. Speculative or early retrieval can start before the planner finishes.
Rate limits are tokens per minute (TPM) and requests per minute (RPM) per deployment. Parallelism beyond the limit produces HTTP 429 errors and retries that lengthen the task. Remedies include concurrency caps sized to quota, spreading load across deployments or regions through an API Management backend pool, provisioned throughput for steady high volume, and shorter prompts.