I have an interesting use-case, and would appreciate help on how to approach it.
I’d like to write a simulator that gets user input, runs some computation, and gives the user (relatively) real-time results.
If real time was not a requirement, I could trigger a workflow, get the run ID, and then return the run output to the user.
The activities in this case would be:
- Get a page of results
- Calculate something
And the workflow would be
- While there are more results
- Get page
However, the real-time requirement of this feature prevents us from waiting for the workflow to finish.
Would this be possible through Temporal alone, by somehow getting the intermediate activity results, or would you recommend saving results to a separate store?