What happens when two workflows try to communicate with each other at the exact same time? Is it a deadlock? How can it be resolved?
WF 1 → tries to message WF2 using ExternalWorkflowStub
WF 2 → tries to message WF1 using ExternalWorkflowStub
Can you describe your use case for this? Are you relying on some sort of order of receiving the signals or is this just a generic question? In Java SDK each signal is handled in its own workflow thread, so receiving and handling one signal does not block all consecutive signals that are received at the same time.