Start free trial
Start free trial Log in

14-day free trial. No credit card.

Laravel Horizon alternative for non-Redis queues

Horizon is Redis-only, so here are the real options for database, SQS, Beanstalkd or mixed queues.

  • Guide
  • 3 min read

What's the best Laravel Horizon alternative?

On Redis, keep Horizon: it's free and built for real-time queue views. For non-Redis queues (database, SQS, Beanstalkd, RabbitMQ) or multi-driver setups, use an APM that records jobs on every driver. NightOwl is built on Laravel's own nightwatch package and records every job attempt across all drivers with class, duration, status, retry count, and exception, grouped by job class with historical trending. Inspector.dev also monitors Laravel queued jobs.

Updated

Horizon is genuinely excellent, which is why the gap it leaves catches people off guard. It's the official Laravel queue dashboard, it's free, and on Redis it gives you a live view of every queue and worker. The catch is one word in that sentence: Redis. The day you move a queue to SQS, start on database queues to keep infrastructure simple, or inherit a stack that uses Beanstalkd, Horizon shows you nothing, and there's no config flag that fixes it, because the whole thing is built on Redis data structures. This guide is about what you do then.

What Horizon actually does

Horizon is a Redis-backed real-time dashboard for Redis queues. It provides:

  • Live queue depth per queue
  • Throughput (jobs/minute) per queue
  • Worker process status
  • Failed jobs list with retry
  • Per-job-class runtime metrics (recent window)
  • Current wait time per queue on the dashboard (the Metrics page charts throughput and runtime, not wait)
  • Notifications when a queue's wait passes the waits threshold

It's tightly coupled to Redis: the data structures it relies on (sorted sets, hashes) are Redis-native. That's why it doesn't work with other drivers.

Option A: DIY queue monitoring

Listen to Laravel's queue events in AppServiceProvider::boot() and write every job attempt to a database table. A job that throws but still has attempts left fires JobReleasedAfterException, not JobProcessed or JobFailed, so listen for it too or retries vanish from your data:

app/Providers/AppServiceProvider.php

php
<?php

namespace App\Providers;

use Illuminate\Queue\Events\JobFailed;
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Queue\Events\JobReleasedAfterException;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        $record = function (object $event, string $status, ?string $exception = null): void {
            DB::table('job_attempts')->insert([
                'job_class' => $event->job->resolveName(),
                'queue' => $event->job->getQueue(),
                'connection' => $event->connectionName,
                'attempt' => $event->job->attempts(),
                'status' => $status,
                'exception' => $exception,
                'attempted_at' => now(),
            ]);
        };

        Event::listen(function (JobProcessed $event) use ($record) {
            $record($event, $event->job->isReleased() ? 'released' : 'processed');
        });

        Event::listen(function (JobReleasedAfterException $event) use ($record) {
            $record($event, 'released');
        });

        Event::listen(function (JobFailed $event) use ($record) {
            $record($event, 'failed', $event->exception->getMessage());
        });
    }
}

Build a simple Livewire dashboard on top. Works, but now you own: the schema, the retention policy, the aggregation queries, the UI, and the on-call for when the monitoring itself breaks. Cheap in dollars, expensive in time. To record how long each job waited before it started, add the JobProcessing listener from the queue latency guide.

Option B: Full APM with cross-driver queue monitoring

Laravel's nightwatch package records every job attempt automatically across all drivers. NightOwl consumes that data and surfaces it as a proper queue monitoring dashboard:

  • Per-job-class queued, processed, released and failed counts, with avg and p95 duration
  • Duration charts per class at p50, p95 and p99
  • Per-attempt detail with full exception context, and the queue wait before each attempt in the trace timeline
  • Retry visibility: see every attempt, not just the terminal state
  • Alerts when a job throws a new exception or a run crosses its duration threshold

The tradeoff vs Horizon: APMs are near-real-time (seconds of lag), not instant. For live "is the queue draining right now" views, Horizon on Redis is still the better tool. For historical job data and cross-driver coverage, an APM fills the gap.

When to keep using Horizon

If you're on Redis and only need real-time views, stick with Horizon. It's free and purpose-built. Add a tool like NightOwl when you need:

  1. Historical data beyond Redis retention
  2. Queue monitoring integrated with request, query, and exception monitoring
  3. Alerts on job exceptions that don't require extending Horizon yourself
  4. Multi-driver coverage if parts of your stack use SQS or database queues

Job history for every queue driver, not just Redis

NightOwl records every job attempt on database, Redis, SQS or Beanstalkd queues. Each job class gets a page with processed, released and failed attempts and p50, p95 and p99 duration over time. On Redis it runs next to Horizon; everywhere else it covers what Horizon can't.

No credit card needed.

Terminal
composer require nightowl/agent
php artisan nightowl:install
php artisan nightowl:agent

Frequently asked questions

Anything else, write to support@usenightowl.com

What is Laravel Horizon?

Horizon is Laravel's first-party dashboard for Redis queues. It provides real-time views of queue depth, throughput, job runtime, worker status, and failed jobs, all backed by Redis as the data store. It's free, MIT-licensed, and official. It only works with Redis queues.

Why look for a Laravel Horizon alternative?

Three common reasons: (1) your queue driver isn't Redis (Horizon doesn't work with database, SQS, Beanstalkd, or RabbitMQ), (2) you want long-term historical data (Horizon's data lives in Redis with limited retention), (3) you want queue monitoring integrated with request, query, and exception monitoring instead of in a separate dashboard. NightOwl covers all three gaps.

Does Horizon work with SQS or database queues?

No. Horizon is Redis-only by design: it uses Redis data structures for its real-time views. If you're on SQS, database, Beanstalkd, or RabbitMQ queues, Horizon won't work. You need either a different monitoring tool or a migration to Redis.

Can I use Horizon and NightOwl together?

Yes. They're not exclusive. Horizon gives you the real-time Redis view, including the current wait per queue; NightOwl gives you long-term historical job data alongside request, query, and exception monitoring. Teams on Redis often keep Horizon for the live dashboard and add NightOwl for production-grade APM.

Does Horizon alert on failed jobs?

Not natively. Horizon surfaces failed jobs in its dashboard, and its built-in notifications only cover long queue waits. Alerting on failures requires extending it yourself, for example by listening to the Illuminate\Queue\Events\JobFailed event and dispatching notifications. Full APMs typically ship alerting out of the box.

What's the cheapest Horizon alternative for non-Redis queues?

Rolling your own: a database table that records every job attempt via the JobProcessed/JobFailed events, plus a simple Laravel view on top. That's free in dollars but costs maintenance time. The commercial option is NightOwl from $5/month, which records every job attempt across all drivers automatically.

Does Horizon show queue latency (time from dispatch to start)?

Partly. The dashboard shows the current wait time per queue, and the waits setting in config/horizon.php can notify you when a queue waits too long. The Metrics page charts throughput and runtime, not wait, and all of it covers Redis queues only. On other drivers you can record the wait yourself in a JobProcessing listener (see our queue-latency guide). NightOwl shows the wait for each job attempt in its trace timeline but doesn't chart it per queue.

Is there a Horizon-like dashboard for SQS queues?

Not from the Laravel team. AWS's own SQS console shows queue depth and throughput but not per-job detail. Third-party options include NightOwl (works across all queue drivers) and rolling your own on top of SQS's CloudWatch metrics. Inspector.dev also monitors Laravel queued jobs.

Related

Flat pricing, whatever your traffic does

Every plan starts with a 14-day free trial. No credit card needed.

Hobby
$5 a month

One app for a side project. Issues and alerts, with a 14-day dashboard window.

Start my 14-day trial
TeamRecommended
$15 a month

Up to 3 apps and 5 people per team. Full history, the MCP server, data clearing and agent health.

Start my 14-day trial
Agency
$69 a month

Unlimited client apps and people, one overview of every app, and apps you can hand over.

Start my 14-day trial