All Projects → designmynight → laravel-horizon-rabbitmq

designmynight / laravel-horizon-rabbitmq

Licence: MIT license
A package to get RabbitMQ working with Laravel Horizon

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-horizon-rabbitmq

extension.vsix
Some Visual Studio Code Extensions...
Stars: ✭ 19 (-5%)
Mutual labels:  other
laravel-log-mailer
A package to support logging via email in Laravel
Stars: ✭ 14 (-30%)
Mutual labels:  other

Laravel Horizon RabbitMQ

Latest Stable Version Total Downloads StyleCI License: MIT

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

Laravel Package
5.6.x 0.1.x
5.7.x 1.0.x

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].