Product
Latency perception
Streaming, progress and partial results make 5 seconds feel like 1.
What it is and why it exists
Users judge speed by time to first feedback. Stream text, show what the agent is doing (searching, reading 3 sources), render partial structured results, and move long tasks to background jobs with notifications.
Quick prototype
Spinner until done.
In production, at scale
Streaming everywhere, step indicators for agents, skeletons for structured output, background mode with notifications for long runs.
Vendors and tools
| Vercel AI SDK UI / streaming components | Streaming UI patterns |
|---|
How it fails
- A silent 20-second agent run
What the interviewer asks next
An agent takes 40 s. How do you make it acceptable?
Show the plan and live progress, stream the final answer, let users leave and come back (background job + notification), and cut the run time where you can.