Chapter 9. Interaction redundancy: Retries and other control loops

This chapter covers

  • Retries: repeating access attempts on timeouts
  • Retry storms
  • Safe and idempotent services
  • Fallbacks
  • Control loops

While surfing the web, what do you do when a web page you’re trying to access fails to load? You hit the refresh button, right? I’ve talked a lot about redundant service instances, but now want to turn to another place where redundancy is used in cloud-native software: when making requests. Just as depending on a single instance of an app to always be up is untenable, so too is depending on each and every request to never experience any trouble. Instead, your software will repeat requests, just as you do. Well, maybe not just as. Let’s explore ...

Get Cloud Native Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.