Skip to main content

Laravel Horizon and Redis

Premium
5 min read

The Full Lesson is Only for Premium Members

Want to access all of our courses? (31 h 13 min)

You also get:

55 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

CR
Chege Rosetta ✓ Link copied!

Hey Povilas,

Good stuff.

You should probably mention that .env QUEUE_CONNECTION value shoould be "redis" for horizon to work.

DL
David Lun ✓ Link copied!

thank you, updated

A
andywong31 ✓ Link copied!

what are the options when using Redis for Windows users?

PK
Povilas Korop ✓ Link copied!

I wouldn't advise to set up locally on Windows just because on the live server the environment is Linux and you would STILL need to do it in Linux, so if your environment is different - even if you can make it work, you may have various bugs just because different environment setups.

You could use virtual machine on Windows, with Laravel Sail or Docker.

GK
Gavin Kimpson ✓ Link copied!

Cannot tell you how good this tutorial was for me! Got Supervisor all running on my AWS EC2 instance using this guide Thanks!

M
mghase ✓ Link copied!

HELLO HOW TO HANDLE THIS IN PRODUCTION for laravel api only how to handle Gate

M
Modestas ✓ Link copied!

the simpliest way would be - adding a login page where specific users can log in and see the dashboard (the same users that would match the horizon dashboard condition)

DS
Debabrat Sharma ✓ Link copied!

How to handle the situation when redis suddenly stops and supervisor is unable to restart the redis server then how we re going to handle the fallback?

M
Modestas ✓ Link copied!

Heartbeat checks might help with that, as you would instantly get notifications about this.

As far as real-solution, we rarely had this happen and often it was due to something we did, but not by itself, so I can't answer 100%, sorry!

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.