Performance
What decides how fast your Assemblies finish, and the settings that make them faster.
How Transloadit runs your Assemblies
Regions and latency
api2.transloadit.com sends each request to the nearest of our 3 regions,
and the Assembly runs there. Latency grows with distance: from your uploaders to that region, and
from that region to the storage you import from and export to.
Keep your storage close to where your Assemblies run. To run Assemblies in one region, for example for data residency, send them to its endpoint:
| Region | Endpoint |
|---|---|
| US East (N. Virginia) | https://api2-us-east-1.transloadit.com |
| EU West (Ireland) | https://api2-eu-west-1.transloadit.com |
| Asia Pacific (Singapore) | https://api2-ap-southeast-1.transloadit.com |
Priority Job Slots and queues
Each Encoding Job claims
Priority Job Slots while it runs, depending on its
Robot: /image/resize claims 5, /video/encode claims 60.
See the slots for every Robot. Jobs in the live queue start right away as long as
your Priority Job Slots last. Beyond them, jobs wait until slots free up. Slot allowances apply
separately in each region.
Imports of many files, such as a whole bucket folder, run in the batch queue, and so do the Steps
that process their files. Set "queue": "batch" on a Step whose results aren’t urgent to keep it
off your Priority Job Slots. Jobs can move from the live queue to the batch queue, but not back.
Your plan’s allowance is on the API Quotas page in the Console. Read more in What are priority slots?
Video turbo mode
With turbo: true, /video/encode and /video/concat split a video into chunks, encode them in
parallel, and join the results. Long videos finish many times faster.
Each chunk is a job that claims its own slots, so turbo uses more Priority Job Slots, and short
videos can even take longer. chunk_duration sets the length of each chunk in seconds: longer
chunks mean fewer jobs and fewer slots. Values below 5 count as 5, and a video is split into at
most 30 chunks. Read more in What is Turbo mode?
Concurrent Assemblies
Your plan limits how many Assemblies can be active at once, including those waiting for processing, and how many can start per minute. Above these limits, the API turns new Assemblies away; retry after the delay it returns. Spread large backfills over time instead of starting them all at once. Your workspace’s limits are on the API Quotas page in the Console.
Tuning your integration
Template dependencies
Steps that don’t depend on each other run in parallel. Thumbnails can use the original video while another Step encodes it; taking them from the encoded video makes them wait when the original would do. The order of Steps in the JSON doesn’t decide the order they run in. See Assembly Instructions.
Output and metadata settings
Resolution, frame rate, codec, encoding settings and the number of outputs decide how much work a
Step does. Extracting metadata adds work too: output_meta: false skips the extra extraction where
your workflow doesn’t need it. See the /video/encode parameters.
Upload concurrency
The limit option of Uppy’s Transloadit plugin sets how many files upload at once; its
documentation recommends 5 to 20. Tune it against real connections and file sizes: more parallel
uploads aren’t always faster in total. See the Uppy options.
Waiting for results
With waitForEncoding: false, Uppy finishes once the upload is done while processing continues.
Use notify_url to update your app when the results are ready. Your users wait less, though
processing takes as long as before. See the Uppy options.
Live results
Instead of polling assembly_ssl_url until the Assembly ends, subscribe to its
update_stream_url with server-sent events. You receive progress, and each result as soon as its
Step finishes, so your app can show the first files while others are still processing. Uppy’s
Transloadit plugin uses this stream. Older integrations listen over WebSockets with Socket.IO at
websocket_url; new ones should use server-sent events. The stream doesn’t replay earlier events,
so fetch the Assembly Status after a disconnect. See
Stream Assembly changes live.
Smart CDN caching
Stable cache keys and a small, fixed set of transformation variants make cached results reusable. Measure first-time transformations separately from cached edge hits: they take very different paths. See Smart CDN.