g41797/queue-kafka 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

g41797/queue-kafka

最新稳定版本:v0.0.3

Composer 安装命令:

composer require g41797/queue-kafka

包简介

Yii Queue Adapter for Apache Kafka

README 文档

README

build

Description

Yii3 Queue Adapter for Apache Kafka is adapter in Yii3 Queue Adapters family.

Implementation of adapter is based on synchronous mode of Swoole PHP Kafka client library.

Requirements

  • PHP 8.2 or higher.

Installation

The package could be installed with composer:

composer require g41797/queue-kafka

General usage

Configuration

Default configuration:

[
     'bootstrapServers' => 'localhost:9092',  // Format `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']`
]

Limitations

Job Status

Job Status

// Push a job into the queue and get a message ID.
$id = $queue->push(new SomeJob());

// Get job status.
$status = $queue->status($id);

is not supported.

Testing

Unit-testing is supported for local environment. Run of phpunit under GitHib action was disabled because problem of kafka configuration. Description of cumbersome configuration see Kafka Listeners - Explained

License

Yii3 Queue Adapter for Apache Kafka is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-07-10