Laravel5 and GAE using multiple queues

I am running a Laravel 5.1 project on Google App Engine.

To speed up the process, I found a package that provides interfaces between the GAE and Laravel5 implementations. ( https://github.com/shpasser/GaeSupportL5 )

Now I would like to handle certain types of tasks in different ways. Various retries or failure. In addition, I do not want certain types of tasks to interfere with others, just sitting in line.

To do this, I suggest using multiple queues. In the implementation of the shpasser package, it seems that you can use only one connection in the queue. But the documentation for both GAE and Laravel 5 supports multiple queues.

How to do it?

+4
source share
1 answer

From the Shpasser / GaeSupportL5 / Queue / GaeQueue.php check, it can support multiple queues, see line # 88 :

return $task->add($this->getQueue($queue));

In the context of this method, this is passing the specified queue name to add () (from the GAE TaskQueue API ) or 'default' if nothing is specified.

As a workaround, you can also use the GAE TaskQueue API directly.

+1
source

Source: https://habr.com/ru/post/1624450/


All Articles