Creating a new namespace in Temporal

You can have a single WorkflowServiceStubs instance, but you need a separate WorkflowClient instance for each namespace (and set the namespace via WorkflowClientOptions).

A worker is associated with a single namespace (as its WorkerFactory is tied to a single WorkflowClient instance).

2 Likes