This topic was automatically generated from Slack. You can find the original thread here.
Hi ,
We’re preparing to take our workflow live and want to make sure we’re set up to avoid Out Of Memories issues at scale. The workflow has ~9 steps and processes purchase orders that can have hundreds of line items.
Questions:
Does each step’s $return_value stay in memory for the entire workflow execution, or is there any garbage collection between steps?
Would consolidating pure transformation steps into fewer steps meaningfully reduce memory usage, or is the overhead mostly in our data, not the step count?
- Is there a recommended way to monitor per-step memory consumption? We’re considering logging
process.memoryUsage().rssat the start/end of each step. - For workflows that process variable-size payloads (10 items vs 500 items), are there any best practices or memory limits we should be aware of?
Any guidance would be really helpful. Thanks!
FYI @U0AD20REN4T,