+Workers cache aggressively the dependencies (and each version of them since every script has its own lockfile with a specific version for each dependency) so they are never pulled nor installed twice on the same worker. However, with a bigger cluster, for each script, the likelihood of being seen by a worker for the first time increases (and the cache hit ratio decreases). However, you may have noticed that our multi-tenant [cloud solution](https://app.windmill.dev) runs as if most dependencies were cached all the time, even though we have hundreds of workers on there. For typescript, we do nothing special as npm has sufficient networking and npm packages are just tars that take no compute to extract. However, python is a whole other story and to achieve the same swiftness in cold start the secret sauce is a global cache backed by s3.
0 commit comments