0073-laravel-queue-patterns
CommunityRun Laravel queues safely with proven patterns.
Software Engineering#queues#laravel#batching#idempotency#retry strategies#job middleware#dispatch patterns
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you avoid unreliable and duplicate background processing in Laravel queues by standardizing job dispatching, execution safety, and failure handling.
Core Features & Use Cases
- Job structure & lifecycle: Design queued jobs with proper traits,
handle()logic, and afailed()method for cleanup and notifications (e.g., marking an order as failed). - Dispatch patterns with transaction safety: Use
delay(),dispatchIf/Unless(), and especiallyafterCommit()to prevent jobs from running before database commits. - Operational resilience: Add middleware for rate limiting, overlap prevention, and exception throttling; use chaining, batching, and uniqueness to manage complex workflows (e.g., sequential payment steps or parallel CSV chunk processing).
- Correctness under retries: Configure retries (
tries,retryUntil,backoff,timeout) and implement idempotency so jobs remain safe even when run multiple times.
Quick Start
Use this Skill to implement Laravel queue best practices for an order/payment system so jobs dispatch after commits, run with overlap and rate protections, and update state correctly on retries and failures.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0073-laravel-queue-patterns Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0073-laravel-queue-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.