Download the PHP package goletter/hyperf-queue without Composer

On this page you can find all versions of the php package goletter/hyperf-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hyperf-queue

goletter/hyperf-queue

Millisecond-precision async queue for Hyperf, built on top of hyperf/async-queue.

Official RedisDriver stores delay scores with time() (second precision). This package provides RedisMsDriver that:

Requirements

Install

Path repository (monorepo):

Publish config (or merge into existing config/autoload/async_queue.php):

Configuration

Keep the official default pool unchanged, and add a separate ms pool:

The ms pool uses the same keys as the official pool. Optional tuning keys:

Usage

Convention: on RedisMsDriver (ms pool), DriverInterface::push($job, $delay) treats $delay as milliseconds, so existing QueueService::push($job, 'ms', 10) works without API changes. On official RedisDriver, $delay remains seconds.

Jobs are normal Hyperf\AsyncQueue\Job classes — no special base class required.

Ops

Production notes

  1. Do not share channel between RedisDriver and RedisMsDriver. Score units differ (seconds vs milliseconds).
  2. Prefer Redis Cluster hash tags in channel names, e.g. {queue-ms}, so related keys stay in one slot.
  3. move_interval_ms trades CPU vs delay accuracy. 5 is a good default (typical wake latency ≈ 5–20ms + Redis RTT).
  4. On ms pool, push($job, $delay) delay unit is milliseconds; on default it is seconds.
  5. Retry after failure uses retry_seconds (converted to ms), or retry_milliseconds if set.
  6. Multi-tenant: put tenantId on the Job and restore context in handle(); rate-limit at push time if needed.

How it works

License

MIT


All versions of hyperf-queue with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
hyperf/async-queue Version ~3.1.0
hyperf/codec Version ~3.1.0
hyperf/collection Version ~3.1.0
hyperf/command Version ~3.1.0
hyperf/context Version ~3.1.0
hyperf/contract Version ~3.1.0
hyperf/coroutine Version ~3.1.0
hyperf/process Version ~3.1.0
hyperf/redis Version ~3.1.0
hyperf/support Version ~3.1.0
psr/container Version ^1.0 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package goletter/hyperf-queue contains the following files

Loading the files please wait ...