This question evaluates understanding of robust HTTP API integration, covering reliability and resilience topics such as timeouts, retries and backoff, idempotency, authentication and headers, rate limiting, pagination, and observability in high‑QPS client-service interactions.
You need to integrate with an external HTTP API (could be an internal microservice or a third-party service). The call is on the critical path of a user request.
Explain how you would implement this HTTP integration robustly:
Assume high QPS and that the external API can be slow or intermittently failing.