Error Handling Framework
Build comprehensive error handling system with retry strategies, circuit breakers, dead letter queues, and error analytics.
Complexity: Moderate | Duration: 15-30m | Category: Devops
Tags: automation error-handling reliability resilience
Workflow Diagram
Steps
Step 1: Error classification
Agent: backend
architect - Classify errors (transient, permanent, user)
Step 2: Retry strategy
Agent: automation
specialist - Exponential backoff, max attempts, jitter
Step 3: Circuit breaker
Agent: automation
specialist - Open circuit after threshold, half-open retry
Step 4: Dead letter queue
Agent: backend
architect - Route failed messages to DLQ
Step 5: Error logging
Agent: backend
architect - Structured logging with context
Step 6: Alerting
Agent: automation
specialist - Alert on error rate spikes, circuit open
Step 7: Error analytics
Agent: automation
specialist - Track error trends, common failures
Step 8: Recovery procedures
Agent: automation
specialist - Document manual intervention steps
Usage
To execute this workflow:
/workflow devops/error-handling-framework.workflow
Related Workflows
See other workflows in this category for related automation patterns.