# Blue green deployment and its impact on Namespace /Task queue

**URL:** <https://community.temporal.io/t/blue-green-deployment-and-its-impact-on-namespace-task-queue/12209>\
**Category:** Server Deployment\
**Tags:** java-sdk, namespace, task-queue\
**Created:** [May 23, 2024, 6:50am UTC](https://community.temporal.io/t/blue-green-deployment-and-its-impact-on-namespace-task-queue/12209 "2024-05-23T06:50:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrt](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@mrt](https://community.temporal.io/u/mrt)\
**Post date:** [May 23, 2024, 6:50am UTC](https://community.temporal.io/t/blue-green-deployment-and-its-impact-on-namespace-task-queue/12209/1 "2024-05-23T06:50:25Z")

</div>

We are using temporal java sdk and using Springboot . We use a single task queue for all the workflows and activities .The app is deployed in k8s . We are planning to use blue green deployment . The idea is to use Estio DestinationRule and VirtualService to route to different host based on a version tag . We have a rest endpint as part of the same application that creates the async workflows in the same registered namespace and task queue using the client apis.

Here is my question .  
Imagine the blue environment is deployed . When the green environment comes up for the first time we cant start the workers immediately if they point to the same namespace and task queue .

So we are thinking of either using different namespace or different task queue . With namespace the archival and retention periods need to be configured separately . so we are leaning to use different task queue .  
We are planning to rotate between two task queues , we have to ensure that there are no pending/running workflows during the switch over.

Can you suggest if the above will work ?
