tenacity - Resilience patterns for microservice calls
Implement retry with exponential backoff and circuit breaker for KYC microservice communications
Tags
Updated: 2026-03-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- install tenacity library
- configure retry decorator
- implement circuit breaker
- create retry configurations
- register retry metrics
- configure exception handling
Inputs
- service endpoint URL
- HTTP request payload
- document image data
- selfie image data
- face data
- OCR service parameters
- liveness detection frames
Outputs
- service response data
- circuit breaker state
- retry attempt log
- Prometheus metrics
Requirements
- Python 3.8+
- httpx library
- tenacity>=8.2.0
- prometheus_client
