3 ms·
If you load all the dependencies outside of the actual event loop, then these will only be loaded in a function's cold start before it is suspended between requ
by kondro 6y ago
If you load all the dependencies outside of the actual event loop, then these will only be loaded in a function's cold start before it is suspended between requests.
With this, you're only effectively paying this cold-start costs on first load of a new function (or whilst adding extra concurrency) and they're often kept around for 4-8 hours, even if they don't receive any requests.