Managing queues with Redis and monitoring them
Using database
as the connection is convenient for people who start using the queue and have already had the database set up for storing application data, for example. Why use Redis instead of a database? Because Redis has more optimization for managing queues than a database, and you can use Laravel Horizon to monitor the queue. Laravel Horizon provides a web dashboard for monitoring your queues and the metrics about the usage of the queues.
As the first step of managing queues with Redis, first, let’s install the Redis service.
Installing Redis
Installing Redis means that you have added software and service to your stack. If you are a macOS user, you can install it via Homebrew:
brew install redis brew services start redis
The first command installs the software; the second one starts the service.
You can use your package manager if you have a GNU/Linux distribution; Redis is included in most GNU/Linux distributions...