Download the PHP package ozaretskii/php-snake-mqp without Composer
On this page you can find all versions of the php package ozaretskii/php-snake-mqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ozaretskii/php-snake-mqp
More information about ozaretskii/php-snake-mqp
Files in ozaretskii/php-snake-mqp
Package php-snake-mqp
Short Description PHP async messages queueing and processing library
License BSD-3-Clause
Homepage https://packagist.org/packages/ozaretskii/php-snake-mqp
Informations about the package php-snake-mqp
PHP async messages queueing and processing library
SnakeMQP is a library for running and managing php tasks asynchronously via queues. You can simpy integrate async execution any part of your code with just a couple of minutes of work. This library provides you with all necessary tools to just start enjoying aync tasks processing out of the box, or building more complex and scalable task management system on top of it.
Ofter our code execution require more time or resources that we can afford on per same http request basis. In that case moving parts of most heavy or time-consuming operations on background can be an obvious solution. Background execution allows you to process multiple tasks per same time by using multiple workers, or simultaneous "chain" (placing next task to queue after current is finished) tasks execution, when an order of execution is critically important.
You can simply manage many types of your tasks by placing them into separated queue names and assigning priorities for any specific task or a queue. Delayed execution can also be handy in some specific cases. Dedicated workers for processing specific queue names can allow you to immediately process important tasks besides other queues to make sure that critically important parts of your project is always running on time.
SnakeMQP allows you to make any number and type of independent "workers" that can be called from project code, cli or rest api. That means you can integrate asynchronous execution of any part of your code even been limited to low level server access. Your workers can be triggered by simple crontab script, CURL, external authorized API call or unix daemon (like Supervisor or Systemd).
Benefits of using SnakeMQP:
- Easy integration in any php based project
- Highly manageable queueing system
- Delayed execution of tasks
- Having a dedicated workers to process specific queues or tasks with specific priority only
- Dynamic integration of "workers" to meet your project needs
Quick Examples
Placing tasks for further processing (mysql based queue)
Running worker (mysql based queue)
Getting Help
If you encounter a bug, need help with implementing SnakeMQP into your project, or you need to request an extra functionality into the library - feel free submitting any issues on https://github.com/ozaretskii/php-snake-mqp/issues . Any PR's are welcome. I hope it will help you with your needs. Thanks.