cadence-workflowtemporal-workflowuber-cadence

Should I use child workflow or use activity to start new workflow


Like the title. Seems like both ways should work but child workflow seems easier.


Solution

  • It’s strongly recommended to always use activity to start new workflow and never use ChildWorkflow until the reset feature is working with Child Workflow https://github.com/uber/cadence/issues/3914

    https://github.com/temporalio/temporal/issues/3141

    To get result back to parent from child workflow, use signal. To link the two workflows, use search attributes when starting new workflows.