References: Working With Outside Services¶
-
Exponential backoff - Wikipedia - Explains waiting longer after each failed attempt so a struggling service can recover. It is the retry pattern recommended in this chapter.
-
Circuit breaker design pattern - Wikipedia - Describes stopping calls to a failing service for a while instead of piling on. It supports the chapter's circuit breaker and graceful degradation sections.
-
Idempotence - Wikipedia - Covers operations that give the same result when repeated. It explains why retries are only safe for some requests.
-
Release It! Design and Deploy Production-Ready Software (2nd ed.) - Michael T. Nygard - Pragmatic Bookshelf, 2018 - Nygard popularized the circuit breaker, timeout and bulkhead as named stability patterns, each paired with an outage story. His pattern names are now standard vocabulary.
-
Building Microservices (2nd ed.) - Sam Newman - O'Reilly Media, 2021 - Newman's chapter on resilience explains timeouts, retries and degrading gracefully when a dependency fails. His plain treatment of failure between services fits apps that call many vendors.
-
Circuit Breaker - Martin Fowler - A short explanation of the circuit breaker with a state diagram and sample code. It is the clearest single page on the pattern.
-
Timeouts, retries, and backoff with jitter - AWS Builders' Library - How Amazon sets timeouts and limits retries so they don't make outages worse. It backs the chapter's advice on timeouts and retry limits.
-
Exponential Backoff And Jitter - AWS Architecture Blog - Marc Brooker shows with simulations why adding random jitter to backoff spreads out retries. Useful for setting retry delays.
-
Idempotent requests - Stripe API Reference - Shows how idempotency keys make a retried payment safe from double charges. It is a concrete example of idempotency on the money path.
-
Zod - Zod - A TypeScript library for checking that data matches an expected shape. It is one way to validate vendor responses before trusting them.