Download the PHP package berlioz/queue-manager without Composer

On this page you can find all versions of the php package berlioz/queue-manager. 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 queue-manager

Berlioz Queue Manager

Latest Version Software license Build Status Quality Grade Total Downloads

Berlioz Queue Manager is responsible for processing jobs from a queue using a job handler. It supports advanced features like memory and time limits, signal handling, and customizable worker options.

For more information, and use of Berlioz Framework, go to website and online documentation : https://getberlioz.com

Installation

Composer

You can install Berlioz Queue Manager with Composer, it's the recommended installation.

Dependencies

Usage

Jobs

JobDescriptorInterface

JobInterface

JobForQueue

Jobs handlers

The JobHandlerManager is a central component for managing multiple job handlers in the Berlioz Queue Manager. It implements the JobHandlerInterface and acts as a dispatcher, delegating job processing to the appropriate handler based on the job's name.

The JobHandlerInterface defines the contract for handling jobs in the Berlioz Queue Manager. Implementing this interface allows you to define how specific jobs should be processed.

Below is an example implementation of a JobHandlerInterface for consuming and processing a job named "foo":

Worker

The Worker class is the main part of the Berlioz Queue Manager and is responsible for processing jobs from a queue using a job handler.

Queues

DbQueue

The DbQueue is a durable implementation of a queue that uses a database to store jobs persistently. This ensures that jobs remain available even in the event of application or server restarts. By leveraging a database, the DbQueue provides reliability and durability, making it suitable for production environments where job data must not be lost.

Key Characteristics:

While DbQueue offers durability and reliability, its performance may be impacted by database latency compared to in-memory queues. It is best suited for scenarios where persistence and fault tolerance are prioritized over low-latency operations.

Example of schema for MySQL:

If you want to keep the jobs treated:

Memory queue

The MemoryQueue is a lightweight, ephemeral implementation of a queue that stores jobs in memory for the duration of the script's execution. This queue is particularly useful for testing, development, or scenarios where persistent storage is not required. Since the jobs are stored in memory, they are lost when the script ends, making it unsuitable for production environments where job persistence is critical.

Key Characteristics:

The MemoryQueue provides all the standard operations of a queue, such as pushing jobs, consuming jobs, and checking the size of the queue, while maintaining a simple in-memory data structure to manage these operations. However, since it lacks durability, it should be used with caution and only in scenarios where the transient nature of the data is acceptable.

AwsSqsQueue

The AwsSqsQueue is an implementation of a queue that integrates with Amazon Simple Queue Service (SQS), a fully managed message queuing service provided by AWS. This queue leverages the scalability, durability, and distributed nature of SQS to handle job storage and delivery in a reliable and fault-tolerant manner.

Key Characteristics:

With features like visibility timeouts, message delays, and dead-letter queues, AwsSqsQueue provides robust mechanisms for handling complex workflows and ensuring job delivery. However, since it is a cloud-based service, its performance depends on network latency and AWS's regional availability.


All versions of queue-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
berlioz/helpers Version ^1.0
psr/clock Version ^1.0
psr/container Version ^1.0 || ^2.0
psr/log Version ^1.0 || ^2.0 || ^3.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 berlioz/queue-manager contains the following files

Loading the files please wait ....