This site is archived.

Batch vs. Queue: an API Smackdown

8:30 AM - 9:30 AM
308 Rackspace

Presented by

John VanDyk (jvandyk)
Iowa State University
Under the HoodUnder the Hood
Technical details: Study servers, Drupal core, module building, and more.

The Batch and Queue APIs are a little-known treasure trove of functionality inside Drupal. Many developers have heard about these tangentially but are a little fuzzy on the details and when to use them. In this lucid introduction, you'll learn what these APIs are for as well as when to batch and when to queue. We'll start with the Batch API and cover everything from simple nonprogressive batch processing to progressive batches with and without JavaScript. And then there's the new Queue API. Drupal 7 contains a default MySQL-based implementation, a high-performance MemoryQueue, and the ability to plug in external queue systems like beanstalkd. You'll learn how to create and process queues, how to manage timeouts and how to do verbose debugging.

The goal of this session is to explain how these APIs work using clear language and illustrations.

Who should attend: This presentation is aimed at those who did not spent weeks writing Java queues in a computer science curriculum; if you know what the word "idempotent" means, you don't need to attend this session.

Experience: Intermediate, Advanced, Expert
Industry: education, library, non-profit
Tags: api, batch, queue

Very helpful presentation, even if you know what idempotent means!