Skip to content

🎥 Make videos programmatically with React

better document quotas a concurrency

Jonny Burger7efa74241382
diff --git a/packages/docs/docs/lambda.md b/packages/docs/docs/lambda.md
index 785b191db2..afb78e1d5f 100644
--- a/packages/docs/docs/lambda.md
+++ b/packages/docs/docs/lambda.md
@@ -10,8 +10,8 @@ import {LambdaRegionList} from '../components/lambda/regions.tsx';
## When should I use it?
-- Your videos are less than 2 hours long. <sub>(AWS Lambda storage constraint)</sub>
-- You are rendering less than 1 hour of video per minute. <sub>(AWS Lambda Burst Limit / Concurrency constraint)</sub>
+- You are rendering less than 1 hour of video per minute. <sub>([AWS Lambda Concurrency Limit / Burst Limit constraint](/docs/lambda/troubleshooting/rate-limit))</sub>
+- Your videos are less than 2 hours long. <sub>([AWS Lambda storage constraint](/docs/lambda/disk-size))</sub>
- You are fine with using Amazon Web Services in one of the [supported regions](/docs/lambda/region-selection).
If one of those those constraints is a dealbreaker for you, resort to normal [server-side rendering](/docs/ssr).
@@ -27,7 +27,7 @@ If one of those those constraints is a dealbreaker for you, resort to normal [se
## Architecture
-- **Lambda function**: Requires a layer with Chromium and FFMPEG, currently hosted by Remotion. Only one lambda function is required, but it can execute different actions.
+- **Lambda function**: Requires a layer with Chromium and FFMPEG, currently hosted by Remotion. Only one Lambda function is required, but it can execute different actions.
- **S3 bucket**: Stores the projects, the renders, and render metadata.
- **CLI**: Allows to control the overall architecture from the command line. Is installed by adding `@remotion/lambda` to a project.
- **Node.JS API**: Has the same features as the CLI but is easier to use programmatically
@@ -47,7 +47,8 @@ The following regions are available for Remotion Lambda:
## Limitations
- You only have up to 10GB of storage available in a Lambda function. This must be sufficient for both the separated chunks and the concatenated output, therefore the output file can only be about 5GB maximum, limiting the maximum video length to around 2 hours of Full HD video.
-- Lambda has a global limit of 1000 concurrent lambdas per region by default, although it can be increased.
+- [Lambda has a global limit of 1000 concurrent lambdas per region by default, although it can be increased](/docs/lambda/troubleshooting/rate-limit).
+- Lambda has a [burst limit of as low as 500](https://docs.aws.amazon.com/lambda/latest/dg/invocation-scaling.html) (depending per region) functions that can be spawned in a short amount of time. If you render a lot of videos, you must slowly build up invocations rather than trigger them all at once.
## Cost
diff --git a/packages/docs/docs/lambda/faq.md b/packages/docs/docs/lambda/faq.md
index 0f42293551..e6bcf07b32 100644
--- a/packages/docs/docs/lambda/faq.md
+++ b/packages/docs/docs/lambda/faq.md
@@ -6,9 +6,13 @@ slug: /lambda/faq
Some commonly asked questions about Remotion Lambda.
+### Is Lambda self-hosted?
+
+Yes, you host Remotion Lambda in your own AWS account. Remotion does not offer a hosted rendering solution at this time.
+
### Do I need to deploy a function for each render?
-No, in general you only need to deploy one function and it will be capable of rendering multiple videos, even across different projects. Trying to deploy multiple functions with the same version and region will result in the existing function being returned instead.
+No, in general you only need to deploy one function and it will be capable of rendering multiple videos, even across different projects.
There are three exceptions when it is possible to deploy multiple functions:
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.md
index 8dd58a7d75..7f7631c943 100644
--- a/packages/docs/docs/lambda/setup.md
+++ b/packages/docs/docs/lambda/setup.md
@@ -189,7 +189,17 @@ You are now ready to render a video.
</TabItem>
</Tabs>
-## 9. Render a video
+## 9. Check AWS concurrency limit
+
+Check the concurrency limit that AWS has given to your account:
+
+```
+npx remotion lambda quotas
+```
+
+By default, it is `1000` concurrent invocations per region. However, new accounts might have a limit [as low as `10`](/docs/lambda/troubleshooting/rate-limit). Each Remotion render may use as much as 200 functions per render concurrently, so if your assigned limit is very low, [you might want to request an increase right away](/docs/lambda/troubleshooting/rate-limit).
+
+## 10. Render a video
<Tabs
defaultValue="cli"