How Do You Deal With a Slow API?
How do you deal with a slow API?
Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.
Hints
Hint 1
Separate what the client can do to hide latency from what actually removes it.
Solution
Show the approach
Answer
Show the page shell with a skeleton at once. Cache and revalidate, paginate, request in parallel, and cancel stale requests with AbortController. Then fix the cause on the server, because the client can only hide latency.