Thanks @antonio.perez . I’m implementing periodic polling as a child workflow, which will be triggered by the parent workflow.
In the official Temporal Java samples, the polling logic is implemented directly inside the workflow code. However, that is not a good practice Polling in workflow vs. Activity? - #2 by maxim.
Since in my design the polling runs inside a child workflow, and the parent workflow only records the start and end events, am I correct in assuming that this approach won’t negatively impact the parent workflow’s history size or performance?