Open lorensr opened 1 year ago
content on building code:
In most of our samples:
ts-node
, which compiles TypeScript on the fly.We can improve our Worker's startup time by building code in advance.
The Worker code can be built and run with:
npm run build
node lib/worker.js
See bottom part of this section.
Can include this env vars file: https://github.com/temporalio/documentation/pull/1948
Brief description
Each SDK should have different guidance on deploying workers. I think it should be part of the dev guide, as it's something all developers will need to do (or at least someone on your team will need to set it up and monitor it, similar to metrics/tracing).
Your recommended content
There are a number of ways to run your Worker code in production and scale it to meet your production load.