Five design patterns to build more resilient applications
summary
A simple React front end calls a .NET controller that proxies a third‑party joke API; the default HTTP client timeout is 100s so code sets explicit timeouts to 5s then 2s and wraps calls with the Polly library. The controller implements retry 5 times with exponential back‑off (2,4,8,16s) plus jitter and a fallback that returns a local joke. A circuit breaker trips after 5 failures and stays open for 1 minute. Finally AWS Fault Injection Simulator is used to stop EC2 instances and validate behavior.
AI-written summary · about
