Courses

Queues in Laravel 12

Other Queue Drivers: Redis and Laravel Horizon

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Using Redis as a more performant alternative to database queue driver
- Redis offers better performance as an in-memory database separate from your main database
- Laravel Horizon provides monitoring tools for Redis queue jobs
- Configuration of Redis as queue driver through .env file

In this lesson, we'll explore alternative queue drivers beyond the database driver we've been using so far.

We'll focus on Redis, one of the most popular queue drivers in Laravel development, and introduce Laravel Horizon for monitoring queues.


Why Use Redis for Queues

For local development, the database driver works fine. But when deploying your application to production with many jobs in the queue, Redis often becomes a better solution for several reasons:

  1. Better Performance: Redis is an in-memory database that works as key-value storage, making it faster than traditional MySQL databases.

  2. Reduced Database Load: Redis runs as a separate system, so your queue operations don't add extra load to your main database.

  3. Improved Reliability: Job processing is more reliable with Redis, especially under high load.

  4. Laravel Horizon Support: With Redis, you can use Laravel Horizon, a dashboard for monitoring your queues.

Laravel Horizon provides a beautiful...

The full lesson is only for Premium Members.
Want to access all 15 lessons of this course? (46 min read)

You also get:

  • 76 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord