Defensive Programming and Resilient Systems in the Real World
summary
A company that serves around 600,000 customers describes real production failures (mass double-charges, log DB overload, and a million notifications flood) and the concrete defensive measures taken: moving fraud checks to post-charge and adding reconciliation jobs for missed provider notifications; implementing feature-disabling via YAML-configurable flow toggles and circuit-breaker semantics like Netflix Hystrix; and deploying monitoring with Grafana and Cabot plus end-to-end tracing using a global request ID.
AI-written summary · about
chapters (13)
- 0:00Defensive programming
- 3:43Testing to resilient systems
- 10:07Monoliths vs microservices
- 12:11Real-world failures
- 16:47Logging for resilience
- 22:08Timeouts and circuit breakers
- 25:18Retry mechanisms and async design
- 28:47Unexpected user behavior
- 31:33Feature disabling and dark launches
- 36:07Deployment automation
- 38:35Monitoring and alarms
- 41:03Transparency and decisions
- 43:56Q&A
