NestJS · Senior · Question 29 of 75
How do you make outbound HTTP calls from Nest resilient?
- 1Rely on default timeouts
- ✓Correct answer: Set timeouts, retry idempotent calls with backoff and jitter, add circuit breaking, and limit concurrency per dependency
- 3Retry every call forever
Explanation
RxJS operators (timeout, retry with delay) work well with HttpService; libraries like cockatiel add circuit breakers.