Task Queue Basics

31 323
66.5
Следующее
Популярные
Опубликовано 5 февраля 2013, 18:10
This lesson presents an overview and inner workings of the Task Queue.

The task queue has two flavors: push queue and pull queue. The push queue is a great way to schedule a unit of work, such as sending an e-mail, outside of a user request. This prevents blocking the user request while the e-mail is enqueued for delivery. Push tasks are treated as normal http requests, and are executed ASAP on the same app engine application.

The pull queue allows enqueuing tasks that can be leased by workers according to user defined logic. Unlike push tasks, pull tasks are pieces of data that can be accessed from other app engine instances, servers, or external servers.

Learn how to use both push and pull queues as well as fine tune configuration to optimize performance. Also learn how to execute push tasks on a regular schedule using cron jobs.
автотехномузыкадетское