This library defines a simple (message) queue interface. It sends out messages in the order they came in, but at a limited rate.
Currently implemented features are:
- Basic queue functionality
- Callback queue items
- Burst mode (send a batch of messages before throttling)
The default values are to send 1 message per second with a burst rate of 5 messages. This suits IRC well.
To install this library, you will need Composer.
$ composer require wildphp/queue ^0.1
This library comes with a set of ready-to-use QueueItems, but you might want to develop your own. More on that later.
The most important classes in the library are the QueueProcessor
and BaseQueue
.
More documentation is TBD.
You can see the full list of contributors in the GitHub repository.