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

Horizon Laravel Package

laravel/horizon

Laravel Horizon adds a polished dashboard and code-driven configuration for Laravel Redis queues. Monitor throughput, runtimes, and failed jobs, and manage all worker and supervisor settings from a single config file kept in source control.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Buy – Horizon eliminates the need to build a custom queue monitoring dashboard, reducing development time and maintenance overhead. It integrates seamlessly with Laravel’s ecosystem, avoiding reinventing the wheel for queue management.
  • Feature Roadmap:
    • Observability: Add real-time queue monitoring to the product roadmap to improve debugging and performance tracking for async tasks (e.g., notifications, background processing).
    • Scalability: Justify scaling Redis/queue infrastructure by providing stakeholders with data-driven insights (e.g., job throughput, failures) via Horizon’s dashboard.
    • Reliability: Reduce operational toil by implementing automated retries, dead-letter queues, and alerts for failed jobs (Horizon supports all three).
    • Multi-tenancy: Use Horizon’s named instances (v5.36.0+) to isolate queue monitoring for different environments (e.g., staging vs. production) or microservices.
  • Use Cases:
    • Background Jobs: Monitor Laravel’s queue workers (e.g., sending emails, processing payments) with metrics like execution time, failure rates, and retry counts.
    • Event-Driven Architectures: Track event consumers (e.g., Kafka, RabbitMQ via Laravel queues) for systems relying on async workflows.
    • Data Pipelines: Optimize ETL or batch processing jobs by analyzing bottlenecks in Horizon’s dashboard.
    • Incident Response: Quickly triage queue failures during outages using Horizon’s failed jobs and recent retries views.

When to Consider This Package

Adopt Horizon if:

  • Your Laravel app uses Redis queues (Horizon is Redis-specific; avoid for database/sync drivers).
  • You need real-time visibility into queue performance (e.g., job processing speed, failures, worker health).
  • Your team lacks dedicated SRE/DevOps resources to build and maintain a custom monitoring solution.
  • You require fine-grained control over workers (e.g., dynamic scaling, connection management) via Horizon’s Supervisor configuration.
  • Your roadmap includes batch job processing (Horizon supports batch job tracking and execution).

Look elsewhere if:

  • You’re not using Laravel or Redis queues (Horizon is tightly coupled to Laravel’s ecosystem).
  • Your queue volume is low (<100 jobs/day), and manual queue:work monitoring suffices.
  • You need multi-language support (Horizon is PHP-only; consider alternatives like Sidekiq for Ruby or Celery for Python).
  • Your infrastructure uses non-Redis backends (e.g., database queues, Amazon SQS) without Redis compatibility layers.
  • You require advanced distributed tracing (e.g., OpenTelemetry integration); pair Horizon with tools like Laravel Telescope or Datadog.

How to Pitch It (Stakeholders)

For Executives: "Horizon is a turnkey solution to eliminate blind spots in our async workflows. By integrating this dashboard, we’ll gain real-time visibility into job failures, processing delays, and worker performance—reducing downtime and operational overhead. For example, if our payment processing jobs fail silently, Horizon will alert us instantly, cutting resolution time by 70%. The cost? Minimal: it’s open-source, MIT-licensed, and maintained by Laravel’s team. We’ll also save dev time by avoiding custom monitoring tooling, freeing engineers to focus on core features."

Key Metrics to Highlight:

  • Reduced MTTR: Faster incident response with job failure alerts and retries.
  • Cost Savings: No licensing fees; avoids hiring for custom monitoring.
  • Scalability: Supports Redis Cluster (v5.46.0+) for high-throughput systems.
  • Developer Productivity: Single config file (horizon.php) for team collaboration.

For Engineering: *"Horizon replaces ad-hoc queue debugging with a production-grade dashboard. Key benefits:

  • Supervisor Control: Dynamically scale workers via config (e.g., supervisor_timeout, balance).
  • Batch Jobs: Track multi-job batches with progress bars and failure rollback.
  • Retries & DLQ: Automate failed job handling with configurable backoff.
  • Laravel Integration: Works out-of-the-box with Laravel’s queue system—no reinventing wheels. Example pitch: 'Instead of logging queue:work output to a file, we’ll get a live dashboard showing job execution trends, worker health, and failure patterns—all with zero additional infrastructure.'

For DevOps/SRE: *"Horizon simplifies queue observability with:

  • Redis Cluster Support: Scales with our infrastructure (v5.46.0+).
  • Alerting-Ready: Failed jobs are surfaced in the UI; can integrate with PagerDuty/Slack.
  • Worker Isolation: Named instances (v5.36.0+) let us monitor staging/prod separately.
  • No Custom Code: Avoids maintaining a sidecar monitoring service."*
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai