Better HN
topnewbestaskshowjobs
Log inSign up

chuck_dbos

2 karma · joined Sep 11, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

I'd recommend using child workflows for directed graphs. The building blocks are start_workflow to split off a child, and then you can wait for the result at a later time. Workflows can also send events / messages to communicate back and forth with each other.

One neat thing about starting a child workflow is you can assign an idemopotency ID, which might be intentionally calculated in a way such that multiple parents will only start one run of the child workflow.