Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Resque Laravel Package

david-garcia/php-resque

PHP port of GitHub’s Resque: a Redis-backed background job system for enqueueing and processing jobs with distributed workers. Supports multiple queues/priorities, forking for memory-leak resilience, job status tracking, failure marking, and setUp/tearDown hooks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Background Job Processing: Enables asynchronous task execution (e.g., email sends, data processing, API calls) without blocking user requests, improving scalability and responsiveness.
  • Microservices Architecture: Facilitates decoupling of heavy computations from core application logic, aligning with modular service design.
  • Legacy System Modernization: Provides a PHP-native alternative to Ruby’s Resque for teams maintaining PHP-based systems that rely on background jobs.
  • Cost-Effective Scaling: Leverages Redis (a lightweight, in-memory data store) for job queues, reducing infrastructure costs compared to managed queue services (e.g., AWS SQS).
  • Roadmap for Job Prioritization: Supports prioritized queues, enabling teams to build features like "urgent notifications" or "batch processing tiers" without third-party tools.
  • Build vs. Buy: Justifies in-house development over proprietary solutions (e.g., Sidekiq, BullMQ) if the team lacks Ruby expertise or prefers open-source customization.

When to Consider This Package

  • Avoid if:

    • Active Maintenance Needed: Last updated in 2017; no dependents or stars indicate low community trust. Consider alternatives like php-resque/redis (if available) or modern packages like bamarni/resque or reactphp/resque.
    • Web Interface Required: Missing Resque’s web UI for monitoring jobs/queues. Teams needing visibility should pair with a Redis dashboard (e.g., RedisInsight) or use a package with built-in metrics (e.g., laravel-horizon).
    • PHP 8+ Compatibility: Unclear support for modern PHP versions; test thoroughly or use a maintained fork.
    • High Availability Critical: Fork’s lack of updates may pose risks in production. Evaluate if the "minor adjustments" justify the risk over a stable alternative.
    • Alternative Solutions Exist: Laravel users should prioritize Laravel Queues (built-in) or IronMQ, which offer better integration and support.
  • Consider if:

    • Ruby Resque Dependency: Migrating a Ruby Resque-based system to PHP with minimal code changes.
    • Lightweight Needs: Simple job queues without complex features (e.g., retries, delayed jobs).
    • Redis Expertise: Team is comfortable managing Redis and lacks resources for managed queue services.
    • Legacy System Constraints: Bound to PHP 5.3+ and cannot upgrade dependencies.

How to Pitch It (Stakeholders)

For Executives: "This PHP port of Resque lets us offload time-consuming tasks (e.g., report generation, third-party API calls) from our web servers to background workers, improving site speed and scalability—without adding cloud costs. It’s a lightweight, open-source alternative to proprietary queue systems, aligning with our cost-efficiency goals. While not actively maintained, it’s a proven fork with core Resque functionality, and we can mitigate risks by pairing it with Redis monitoring tools. This enables us to prioritize features like ‘same-day processing’ for high-value users without overhauling our architecture."

For Engineering: *"This package gives us a drop-in replacement for Ruby Resque in PHP, with key features like distributed workers, job prioritization, and failure handling. It’s a good fit if we’re okay with:

  • Trade-offs: No web UI (we’ll need to build or integrate one), and potential long-term maintenance risks.
  • Use Cases: Async email sends, data imports, or any task that blocks requests.
  • Stack: We’re already using Redis, and this avoids vendor lock-in. Alternatives: If we need more features (e.g., retries, delayed jobs), we should evaluate bamarni/resque or Laravel’s built-in queues. But for a quick, lightweight solution, this could work with minimal refactoring."*

For Developers: *"Pros:

  • Simple API for enqueuing/job processing (similar to Ruby Resque).
  • Supports setUp/tearDown for job lifecycle hooks.
  • Tracks job status and marks failures automatically. Cons:
  • Outdated: Last release in 2017; may need patches for PHP 7.4+/8.x.
  • No UI: You’ll need to log job stats manually or use Redis tools.
  • No Retries/Delayed Jobs: Basic functionality only. Recommendation: Start with this if you’re prototyping or have tight constraints. For production, consider a maintained fork or Laravel’s queues."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor