FrontQueue
The Laravel Queue foreground jobs extension., (*1)
The FrontQueue package enables 3 states of job tasking., (*2)
MQ
The Message Queue default state is what this package is constructed for.
One can send a task through a foreground enabled Message Queue, waiting for and returning it's response., (*3)
By default, FrontQueue will try to contact a Gearman server, hosted on the same machine., (*4)
Local
For development or local machines, one can communicate through shell script., (*5)
Avoid using the Local (sync) mode in production environments., (*6)
Folded
Folded state is an API setup where BLM is folded into the API (for small or POC projects)., (*7)
The folded state is ONLY for poc projects, since it requires additional resources without advantage.
Enable it in config, by adding:, (*8)
'stacked'=> false,
, (*9)
Configuration
This package publishes the configuration file config/frontqueue.php
and allows for the Gearman servers to be defined in the .env
file using the FRONTQUEUE_GEARMAN_SERVERS
environment variable., (*10)
The config value is expected to be in the format host1:port1[,host2:port2[,...]]
since the connection is performed with the GearmanClient::addServers()
method., (*11)