You can create a new namespace via tctl, or programmatically, see this post for examples.
Once the namespace is created you can set up you workers that listen to task queues on that new namespace. You should not have to restart your current workers if that is the question.
Namespace is unit of isolation in Temporal, and you can definitely have multiple namespaces setup in your prod environment.
Note that at this time, namespace deletion is not yet supported, follow this issue to track the progress on that.
Another thing is making sure you have the DB capacity to handle multiple apps as persistence is across namespaces, as well as making sure you set up server metrics to monitor and alert on possible issues.
Hi @tihomir
How can we register multiple namespaces in one go.
Let’s say I need 3 namespace , how the workers would be started ?
Will it need 3 ServiceStub?
Temporal server does not enforce a max number of namespaces. Total number however will depend on the capacity of your cluster. You would need to test to reach this max on your env to know what it might be.
@tihomir i understand that some sizing is needed but i am trying to understand if temporal is suited to work with hundreds of namespaces or is that a bad practice.