designmynight / laravel-horizon-rabbitmq
This package is abandoned and no longer maintained.
No replacement package was suggested.
A package to support horizon with RabbitMQ
Package info
github.com/designmynight/laravel-horizon-rabbitmq
pkg:composer/designmynight/laravel-horizon-rabbitmq
v1.0.3
2019-04-10 20:17 UTC
Requires
- illuminate/support: ^5.7
- laravel/horizon: ^1.4 || ^2.0 || ^3.0
- vladimir-yuldashev/laravel-queue-rabbitmq: ^7.1.1
README
A service provider to add support for a RabbitMQ queue driver to Laravel Horizon.
Table of contents
Installation
Installation using composer:
composer require designmynight/laravel-horizon-rabbitmq
Laravel version Compatibility
And add the service provider in config/app.php:
DesignMyNight\Laravel\Horizon\HorizonServiceProvider::class,
Configuration
Be sure to set the connection of your supervisor queue to rabbitmq in config/horizon.php:
'environments' => [ 'production' => [ 'supervisor-1' => [ 'connection' => 'rabbitmq', 'queue' => ['default'], 'balance' => 'simple', 'processes' => 8, 'tries' => 3, ], ],
The service provider will overide the default laravel horizon redis queue and redis job classes with a RabbitMQ implentation in order to trigger the necessary events for horizon to function correctly.