lukaszaleckas/laravel-kafka-queue

There is no license information available for the latest version (v1.0.0) of this package.

v1.0.0 2022-05-21 12:17 UTC

This package is auto-updated.

Last update: 2024-03-21 16:51:51 UTC


README

Laravel Kafka queue driver with support for delayed jobs.

Installation

  1. Run:
composer require lukaszaleckas/laravel-kafka-queue

Service provider should be automatically registered, if not add

LaravelKafka\KafkaQueueServiceProvider::class

to application's your app.php.

  1. Add Kafka's connection to your queue.php config:
'kafka'      => [
    'driver'             => 'kafka',
    'host'               => 'your_host_here',
    'port'               => 9092,
    'queue'              => 'default_queue_name',
    'heartbeat'          => 5 * 1000, //Heartbeat in milliseconds
    'group_name'         => 'group_name',
    'producer_timeout'   => 3 * 1000, //Producer timeout in milliseconds
    'consumer_timeout'   => 3 * 1000, //Consumer timeout in milliseconds
]