Java SDK: what’s the most efficient way to implement request/response?
Currently, we send a signal from a workflow to a target workflow. The signal is sent from an activity, and we include that activity’s task-token in the payload. In the target workflow, when the signal has been “processed”, we send a response to the originating workflow. To do that, we again use an activity, and complete the original activity with ActivityCompletionClient
.
I’m wondering if there is a better way. Looking at the golang “request/response” example here, this implies there is a more efficient solution. My question is: is there an equivalent with the Java SDK?
Many thanks!