Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 887 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 887 Bytes

Synchronous Proxy Sample

This sample demonstrates how to achieve synchronous interaction with a main workflow.

We call this pattern a proxy workflow. The proxy workflow sends a signal to the main workflow and then blocks waiting for a signal in response.

This mimics a synchronous SendAndReceiveSignal feature which Temporal does not currently provide natively.

The flow of calls is outlined in the diagram below.

Flow Diagram

Steps to run this sample:

  1. Run a Temporal service.
  2. Run the following command to start the worker
go run worker/main.go
  1. Run the following command to start the simple UI
go run ui/main.go

Once the UI has exited you will be able to see delivery details in the worker output, as might have been emailed to you in a real implementation.