Skip to content

References: Working With Outside Services

  1. 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.

  2. 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.

  3. Idempotence - Wikipedia - Covers operations that give the same result when repeated. It explains why retries are only safe for some requests.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. Zod - Zod - A TypeScript library for checking that data matches an expected shape. It is one way to validate vendor responses before trusting them.