Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
4 years, 4 months ago
We are currently having Sitecore 9.0 Update 2 which runs on Azure on PAAS. We are planning to implement Blue/Green deployment for zero downtime The plan is to have 2 set environments as Blue will have 1CM, 2 CDs (active) and Green will have 1CM, 2 CDs (standby).
My question is has anyone has implemented this type of set up before? How could you keep two Web databases(Blue & Green) in sync with this kind of approach
Nov 19, 2018 at 12:45
Alivor Tikos Alivor Tikos
383 1 1 silver badge 14 14 bronze badges
Whilst your proposed setup is certainly possible with the help of a traffic manager, I would recommend using Deployment slots for blue green deployment.
With deployment slots, you deploy to a different slot, warm up your site and then swap the new code into production without downtime.
In this scenario, there is no need to sync databases.
If you want content-safe deploys you might want to follow this scenario.
Create copy of your web database.
Deploy code version 1 to you staging slot, link it to the copy of the web database.
Swap your staging and production slot. (Visitors are now temporary browsing on web-db copy)
Deploy code version 2 to your staging slot, linked with original databases.
Test new code and swap into production.
Nov 19, 2018 at 13:40
Bart Verdonck Bart Verdonck
2,568 8 8 silver badges 26 26 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only