<span aria-hidden="true" id="queues"></span>



# Queues

Customers can overwhelm our systems with valid requests for large-scale file processing in just
seconds. To manage these peaks efficiently and ensure smooth service for all customers, we have
implemented queueing mechanisms.

<span aria-hidden="true" id="how-does-it-work"></span>



## How does it work?

* **Live Queue**: Direct file uploads put encoding jobs into the *Live Queue* for immediate
  processing, which acts as a fast lane. Live jobs are prioritized over all other jobs. The
  *Live Queue* is shared between all customers.
* **Batch Queue**: The *Batch Queue* is for larger jobs that don't require real-time
  processing. Automatic batch classification depends on the importer and its bulk-import rules,
  not simply the total number of files in an *Assembly*. To explicitly choose the
  *Batch Queue*, set `"queue": "batch"` on the Step. Eligible batch jobs run at lower priority
  using available worker capacity. They can run while live jobs remain queued if those live jobs
  cannot use that capacity. The *Batch Queue* is also shared between all customers.
* **Automatic turnover**: If too many live jobs are sent and you exceed your subscription plan’s
  amount of *Priority Job Slots*, jobs will trickle down into the Backup Queue
  to avoid affecting other customers' live performance. They will be sent back to the *Live
  Queue* as soon as some of your live jobs complete and thereby freeing up your Workspace’s
  Priority job slots.
* **Backup Queue**: Likewise, If too many batch jobs are sent, they will trickle down into a
  Backup Queue as well, and be re-enqueued into the shared *Batch Queue* as soon
  as some of your batch jobs complete and thereby freeing up your workspace’s batch job slots.

<span aria-hidden="true" id="how-many-slots-do-jobs-cost"></span>



## How many slots do jobs cost?

The number of slots required varies depending on the type of job.
A `/video/encode` job occupies 60 slots, while an `/image/resize` job uses 5 slots, for example.

A list of all robots and their slot requirements can be found in the
[Priority Job Slot FAQ entry](/docs/faq/reserved-capacity.md).

<span aria-hidden="true" id="how-many-jobs-can-i-process-in-parallel"></span>



## How many jobs can I process in parallel?

Each subscription plan comes with a limit on live job slots and batch job slots per region. For
example, if your Priority job slot limit is 120, you can have either 24 concurrent image resizes (5
slots each) or 2 concurrent video encodings before jobs start trickling down into the Backup Queue.
Likewise, if you have 360 batch job slots, having more than 6 video jobs enqueued in
the batch queue will mean subsequent jobs get enqueued into the Backup queue.

Your subscription plan's *Priority job slots* and *Batch job slots* limits are per
region.

<span aria-hidden="true" id="how-can-i-avoid-degraded-performance"></span>



## How can I avoid degraded performance?

1. Get higher amounts of *Priority job slots* and *Batch job slots*, which
   increases throughput.
   [Contact us](mailto:support@transloadit.com?subject=Increasing%20the%20job%20slot%20count) for custom values.

2. Set `waitForEncoding` to `false` (available in, e.g., the
   [Uppy integration](https://uppy.io/docs/transloadit/#options)). This makes processing
   asynchronous, so two-minute queue times won’t block the end-user experience. When the files are
   ready, we ping the `notify_url` and you notify your user. This approach provides the best user
   experience and reliability, allowing you to enable assembly replays if needed. You can find more
   on this in the documentation for [Assembly Notifications](/docs/topics/webhooks.md).

3. By setting `"queue": "batch"` in a step, you can downgrade the priority of its jobs yourself, to
   avoid consuming Priority job slots for jobs that don’t really need zero queue waiting times. For
   example:

```jsonc
{
  "steps": {
    // …
    "encode": {
      "use": ":original",
      "robot": "/video/encode",
      "queue": "batch",
      // …
    },
    // …
  }
}
```

<span aria-hidden="true" id="where-can-i-check-current-queue-times-in-my-region"></span>



## Where can I check current queue times in my region?

You can check current queue times for both *Live Queues* and *Batch Queues* on our
[Status Page](https://transloaditstatus.com/), and programmatically access them via our
[Queues API Endpoint](https://transloaditstatus.com/queue.json) (values are in seconds).
