🎥 Make videos programmatically with React
new lambda page: optimizing cost
Jonny Burger06693318ac5b
diff --git a/packages/docs/docs/gpu.md b/packages/docs/docs/gpu.mdindex ddbafa6f96..833549c8e8 100644--- a/packages/docs/docs/gpu.md+++ b/packages/docs/docs/gpu.md@@ -28,6 +28,10 @@ For rendering content that can benefit from a GPU, you might want to choose a clYou can still render all types of content without having a GPU, it will just be slower.The graphics content will be software-emulated using [ANGLE](https://github.com/google/angle) or [SwiftShader](https://github.com/google/swiftshader) (when using Lambda).+## Using the GPU on Lambda++AWS Lambda instances have no GPU, so it is not possible to use it.+## What are your experiences?We'd love to learn and document more findings about the GPU. Let us know and we will amend this document!diff --git a/packages/docs/docs/lambda/cost.md b/packages/docs/docs/lambda/cost.mdnew file mode 100644index 0000000000..c73b3115c9--- /dev/null+++ b/packages/docs/docs/lambda/cost.md@@ -0,0 +1,27 @@+---+id: optimizing-cost+title: Optimizing for cost+slug: /lambda/optimizing-cost+---++On this page, a few strategies for optimizing the cost of using Remotion Lambda are presented.++## Lower concurrency++A lot of compute time is spent on warming up the Lambda function, opening browsers, uploading and downloading assets. By using less Lambda functions, less overhead is being produced which will ultimately result in lower cost, however also in slower render speeds. See the [Lambda Concurrency](/docs/lambda/concurrency) page for more information.++## Using cheaper regions++Not all AWS regions have the same cost. See the [AWS Lambda](https://aws.amazon.com/lambda/pricing/) pricing chart to see if you are using a region that is more expensive.++## Pre-compute data++Consider whether your computation will run on every invoked Lambda function. If possible, pre-compute data once and pass it as [input props](/docs/parametrized-rendering#input-props) to the render.++## Make the render more performant++Making your render more efficient will also reduce the cost of using Lambda. See the [general performance tips](/docs/performance)++## See also++- [Performance](/docs/performance)diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 540510aed1..b5935044c1 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -381,6 +381,7 @@ module.exports = {"lambda/troubleshooting/bucket-disallows-acl",],},+ "lambda/optimizing-cost","lambda/limits","lambda/changelog","lambda/upgrading",