Blue Green Deployment on AMS . what exactly happens to the loggedIN users during the switch | Community
Skip to main content
sherinregi-1
Community Advisor
Community Advisor
September 12, 2023
Solved

Blue Green Deployment on AMS . what exactly happens to the loggedIN users during the switch

  • September 12, 2023
  • 3 replies
  • 1586 views

Hi All,

 

We are working on implementing blue green deployment for our project and we do have sticky session and logged IN users with AEM. The query we have is during the cutover from blue to green servers what will happen to the users that are logged in and registered with the blue servers. 

 

Will they have to Re login to establish the session back or is there a way we can map them on the new servers. In case if any one faced similar issue any suggestions or insights will be helpful .

 

Thanks,

Sherin 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

Here are my two cents:

  • It appears that you could potentially configure Apache to use sticky connections by URL. This way, theoretically, you won't lose the session after a deployment. I haven't tried it myself, but it's worth considering. Here are some examples:

  • Plan to deploy during off-peak or low-traffic hours. Although this may seem obvious, it's possible that the traffic is so low that this behavior is acceptable. Therefore, it's worth checking.

I would appreciate hearing back about the solution you ultimately choose for this scenario.

3 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 12, 2023

Here are my two cents:

  • It appears that you could potentially configure Apache to use sticky connections by URL. This way, theoretically, you won't lose the session after a deployment. I haven't tried it myself, but it's worth considering. Here are some examples:

  • Plan to deploy during off-peak or low-traffic hours. Although this may seem obvious, it's possible that the traffic is so low that this behavior is acceptable. Therefore, it's worth checking.

I would appreciate hearing back about the solution you ultimately choose for this scenario.

Esteban Bustamante
sherinregi-1
Community Advisor
Community Advisor
September 13, 2023

Thanks @estebanbustamante 

We will talk about the same with consulting also and will share the feedback once I have the final approach .

arunpatidar
Community Advisor
Community Advisor
September 13, 2023

Hi @sherinregi-1 
What kind of Authentication/Authentication you are using , AEM based CUG? or do you have external IDP/SSO etc?

In case of SSO, If session is not found in AEM, it will establish automatically.

 

Since blue green setup switch the instance when you go live, so technically there won't be any AEM session for the user.

Arun Patidar
sherinregi-1
Community Advisor
Community Advisor
September 13, 2023

hi @arunpatidar 

We have external authentication using IDP/SAML , and in this case the user browser will have information that the user has already established AEM session and the login token will also be present there. So when we switch to the new instance what will happen to the login token and the validity

arunpatidar
Community Advisor
Community Advisor
September 13, 2023

Are you not checking the session expiry with every request? I meant for the protected page, every page request must go to the AEM, where session can be validated?

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
September 14, 2023

@sherinregi-1 Do you find the suggestions from users useful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. 

Kautuk Sahni