July 2018
Intermediate to advanced
506 pages
16h 2m
English
In the push model, workers define one or more route handlers in a worker.yaml configuration file, much like those defined in app.yaml. This includes a URL and a script, along with any number of optional handler properties. When a new task is created that matches this handler, the task queue invokes the worker's handler through a network call. Depending on how the task is created, this will take the form of an HTTP POST or HTTP GET.
Push queues are ideal for operations that should execute on a per-task basis. This model works well for tasks that are resource intensive. Because each task is pushed individually, the push model works well for tasks that should be executed in parallel. The downside to this is that high volumes of tasks ...