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
Requires
- php: ^7.4|^8.0
- ext-json: *
- ext-rdkafka: *
- laravel/framework: ^8.83|^9.0
Requires (Dev)
- mockery/mockery: ^1.5
- nunomaduro/larastan: ^1.0
- orchestra/testbench: ^6.24
- phpstan/phpstan-mockery: ^1.0
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^6.4
- squizlabs/php_codesniffer: ^3.6
README
Laravel Kafka queue driver with support for delayed jobs.
Installation
- 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
.
- 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 ]