Skip to main content

Faster progress polling

By default, each getRenderProgress() call invokes the render function, which reads the render progress from S3.

Set skipLambdaInvocation to true to read the progress directly from S3 instead. This reduces the latency and avoids a Lambda invocation for each progress poll. It does not make the render itself faster.

poll-progress.ts
import {getRenderProgress, speculateFunctionName} from '@remotion/lambda/client'; const functionName = speculateFunctionName({ memorySizeInMb: 2048, diskSizeInMb: 2048, timeoutInSeconds: 120, }); const progress = await getRenderProgress({ renderId: 'd7nlc2y', bucketName: 'remotionlambda-useast1-abcdefgh', functionName, region: 'us-east-1', skipLambdaInvocation: true, });

Requirements

If either requirement is not fulfilled, leave skipLambdaInvocation unset.

See also