PHP Classes

How to Implement a PHP Queue Management System using the Package MSG Queue: Queue SysV messages for processing by workers

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-07-03 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 26 This week: 1All time: 11,197 This week: 35Up
Version License PHP version Categories
msg-queue 1.0MIT/X Consortium ...5Algorithms, PHP 5, Unix, Performance ...
Description 

Author

This package can queue SysV messages for processing by workers.

It provides a message class that associates a key to a message data.

Message objects can be added to queues using PHP SysV message queues accessed by a queue class.

A worker class can pull messages with a given queue key in the queue for processing.

Innovation Award
PHP Programming Innovation award nominee
July 2024
Number 8
Queues are resources developers can use to process tasks in parallel without delaying the processes that request the task to be processed.

For instance, when sending a newsletter to many subscribers, it is better to use a queue to let the newsletter delivery be processed by a parallel task that may take a long time to deliver messages to all subscribers.

In PHP, developers can use SysV message queues when PHP is running on a Unix-based system like Linux.

This package can use SysV message queues to implement general-purpose queues in PHP.

Manuel Lemos
Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 37 packages by
Country: Taiwan Taiwan
Age: 31
All time rank: 21046 in Taiwan Taiwan
Week rank: 4 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 17x

Winner: 1x

Documentation

msg-queue

A simple message queue for PHP program


  Files folder image Files (5)  
File Role Description
Files folder imagesrc (3 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (5)  /  src  
File Role Description
  Plain text file message.php Class Class source
  Plain text file queue.php Class Class source
  Plain text file worker.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:26
This week:1
All time:11,197
This week:35Up