« Back to Glossary Index

A queue, in computing, is a data structure that processes items in the specific order they were added — first in, first out. In a website context, queues are commonly used to manage tasks that need to run in sequence rather than all being processed simultaneously.

  • Email sending — managing large batches of outgoing emails without overwhelming a mail server
  • Background processing — running time-consuming tasks like image resizing without blocking the main site
  • Job scheduling — managing WordPress's own scheduled tasks (WP-Cron) in an orderly, sequential way
  • Print or export queues — processing bulk operations like generating multiple PDF invoices

WordPress's own cron system, used for scheduling automated tasks like publishing scheduled posts or checking for plugin updates, functions as a kind of queue — tasks are lined up and processed at their designated time, generally in the order they were scheduled.

Without a queue system, sending a large batch of emails all at once, for instance, could genuinely overload a server or slow a site to a crawl for every visitor. Queuing that work instead lets it process gradually, in the background, without disrupting the normal experience for everyone else browsing the site.

« Back to Index
Share This