Hi, I have a problem related to product deployment.
- my temporal clustering is running at container A with ip a.a.a.a
- my application (workflow definitions, activities) and workers are running at container B with ip b.b.b.b
- my client(WorkflowClient) is running at container C with ip c.c.c.c;
so, can this work? Is setTarget when creating WorkflowServiceStubs in container C enough?
WorkflowServiceStubsOptions workflowServiceStubsOptions =
WorkflowServiceStubsOptions.newBuilder()
.setTarget("a.a.a.a")
.build();
WorkflowClientOptions clientOptions = WorkflowClientOptions.newBuilder()
.setNamespace("default")
.build();
WorkflowServiceStubs workflowServiceStubs = WorkflowServiceStubs.newServiceStubs(workflowServiceStubsOptions);
return WorkflowClient.newInstance(workflowServiceStubs, clientOptions);
Or, I have to put client and application at same place?
Thanks.