Gotcha 😄 > `sendEvent` is still a sub-request though Like from the perspective of the sender rig

Gotcha 😄

sendEvent is still a sub-request though

Like from the perspective of the sender right? (I imagine I mean... but just in case?)


My thought process is that Instead of having a workflow:
  • Trigger 1000 sub requests
    • Sub-request doing a lot of db-calls/other-workflows/etc, (Likely reaching sub-request limits)
  • Wait for 1000 answers
  • Continue execution
That workflow could instead:
  • Trigger 1000 workflows, (and a not await for their responses)
    • Worflows being able to do up to 1000 sub-requests on their own.
  • Promise.all/await for 1000 events (with unique IDs)
  • Have every one of those other workflows call a .sendEvent (with unique Ids)
  • Continue execution
Tldr, main question is that a "sub" workflow request could count towards a sub-request calculation. or are they separated?
Was this page helpful?