PHP Retry Pattern Generator
Generates robust retry infrastructure for PHP 8.4 applications to handle transient failures with exponential backoff and jitter.
This skill automates the creation of a standardized resilience layer for PHP applications, specifically focusing on the Retry pattern. It generates a complete set of components including retry policies, executors, and backoff strategies (fixed, linear, exponential) to ensure high availability during network timeouts, external API outages, or database deadlocks. Designed for modern PHP 8.4 architectures like DDD and Hexagonal, it includes unit tests and follows industry best practices to prevent 'thundering herd' problems, making your backend services significantly more fault-tolerant.
Key Features
0145 GitHub stars
02Supports multiple backoff strategies: Fixed, Linear, and Exponential
03Includes comprehensive PHPUnit test cases for all generated components
04Provides type-safe PHP 8.4 code with readonly properties and Enums
05Generates complete Retry infrastructure including Policy and Executor classes
06Implements jitter logic to prevent synchronized retry spikes
Use Cases
01Handling database connection issues or deadlock recovery
02Processing queue messages with configurable retry and delay strategies
03Managing transient failures in external HTTP API integrations