并发
并发的含义取决于上下文而有所不同。
🌐 Concurrency can mean different things depending on the context.
**在本地渲染中,**并发指的是渲染期间同时打开了多少个浏览器标签页。
每个 Chrome 标签页渲染网页内容,然后进行截图。
**在 Lambda 上进行渲染时,**并发性指的是为一次渲染生成的 Lambda 函数的数量。你可以使用 framesPerLambda 选项来控制 Lambda 的并发性。
每个 Lambda 函数通常只会打开一个标签页,除非你使用 concurrencyPerLambda 选项来增加每个 Lambda 函数的标签页数量。
🌐 Each Lambda function usually opens just a single tab, unless you use the concurrencyPerLambda option to increase the amount of tabs per Lambda function.
更高的并发性可以带来更快的渲染时间,但过高的并发性会导致收益递减,并可能使机器过载,从而可能导致渲染崩溃。
🌐 Higher concurrency can lead to faster render times, but too high concurrency will lead to diminishing returns and to overload of the machines, which might crash a render.