#Question about lambda renderers and asset storage / CDN best practices

3 messages · Page 1 of 1 (latest)

wise trail
#

In the documentation (1), it says that each chunk will download all assets, thus we should consider using a CDN to serve assets.
Does this mean that, to minimise bandwidth charges, I shouldn't have large assets (videos etc) in /public folder as they will always be served from a S3 bucket?

(1) https://www.remotion.dev/docs/lambda/how-lambda-works#will-each-chunk-download-all-assets

This document describes the procedure that gets executed when a Remotion Lambda video render is triggered.

obsidian nexus
wise trail
#

It's faster to load because same AWS region

Ah yeah I didn't think about that!

At the moment, I'm not importing larger videos, but I was mainly worried about longer form videos that may have some 4k sources. Was wondering if its worth putting them into Cloudfront or something.

Thank you for your answer!