A task queue is a messaging system or buffer that holds pending units of work, called tasks or jobs, for asynchronous execution by one or more worker processes. It decouples the component that submits a task (the producer) from the component that executes it (the consumer), enabling load leveling, improved fault tolerance, and horizontal scalability. In multi-agent orchestration, task queues manage the flow of discrete operations—such as agent invocations, API calls, or data processing steps—between the orchestrator and the pool of available agents or services.
