Posted on April 20th, 2010 by David Luhman and tagged
Drupal.
Batch vs. Queue : An API Smackdown
Drupal 7 will use OO for cache and queue systems.
- createQueue
- createItem
- claimItem
- releaseItem
SystemQueue => MySQL
MemoryQueue => in-memory one request
BatchQueue extends SystemQueue
Use Drush for cron-based batch operations
Use queue to queue for later
I think the "Batch" API is somewhat misnamed. It's intent is to "batch up" and provide feedback DURING AN INTERACTIVE SESSION (ex. upgrading a site). To really batch big jobs, use the Queue API.