[{"data":1,"prerenderedAt":177},["ShallowReactive",2],{"glossary-page-\u002Fglossary\u002Fblue-green-deployment":3},{"id":4,"title":5,"body":6,"description":164,"extension":165,"meta":166,"navigation":172,"path":173,"seo":174,"stem":175,"__hash__":176},"docs\u002Fglossary\u002Fblue-green-deployment.md","Blue-Green Deployment",{"type":7,"value":8,"toc":149},"minimark",[9,15,20,27,31,34,38,41,60,63,66,70,79,83,94,98,103,106,110,113,117],[10,11,12],"glossary-title",{},[13,14,5],"p",{},[16,17,19],"h2",{"id":18},"what-is-blue-green-deployment","What Is Blue-Green Deployment?",[13,21,22,26],{},[23,24,25],"strong",{},"Blue-green deployment"," is a release technique that runs two identical production environments and switches all user traffic from one to the other. Blue is the environment serving users now. Green receives the new version, is tested, and then takes over the traffic in a single switch.",[16,28,30],{"id":29},"why-blue-green-deployment-matters","Why Blue-Green Deployment Matters",[13,32,33],{},"A deployment that updates servers in place leaves no quick way back. If the new version fails, the team has to redeploy the old one while users see errors. With blue-green, the old version is still running. Rollback is the same router switch in the opposite direction and takes seconds instead of a redeploy.",[16,35,37],{"id":36},"how-blue-green-deployment-works","How Blue-Green Deployment Works",[13,39,40],{},"The steps are:",[42,43,44,48,51,54,57],"ol",{},[45,46,47],"li",{},"Blue serves 100% of production traffic.",[45,49,50],{},"The pipeline deploys the new version to green, which is idle.",[45,52,53],{},"Smoke tests and health checks run against green.",[45,55,56],{},"The load balancer, DNS record or service router is switched so that green receives all traffic.",[45,58,59],{},"Blue stays up for a period as the rollback target, then becomes the idle environment for the next release.",[13,61,62],{},"Two things need care. The first is cost, because the technique requires double the production capacity during the release. The second is the database: both versions share it, so schema changes must be backward compatible until blue is retired.",[13,64,65],{},"Blue-green deployment belongs to the deploy and release stage of the software delivery lifecycle and is usually automated in the CD pipeline.",[16,67,69],{"id":68},"blue-green-deployment-vs-canary-release","Blue-Green Deployment vs Canary Release",[13,71,72,73,78],{},"Blue-green switches all users at once between two full environments. A ",[74,75,77],"a",{"href":76},"\u002Fglossary\u002Fcanary-release","canary release"," sends a small share of users, for example 5%, to the new version and raises the share step by step. Blue-green gives the fastest rollback. Canary limits how many users see a bad release.",[16,80,82],{"id":81},"how-oobeya-uses-blue-green-deployment","How Oobeya Uses Blue-Green Deployment",[13,84,85,86,89,90,93],{},"Oobeya does not manage deployments or know which release technique a team uses. It measures the result. The ",[23,87,88],{},"Deployments (DORA)"," tab under ",[23,91,92],{},"Analytics > Coding, Review & Delivery"," calculates deployment frequency, change failure rate and time to restore from the pipelines marked as production. A team that moves to blue-green can read those three numbers before and after the change to see whether failed deployments became rarer and recovery faster.",[16,95,97],{"id":96},"frequently-asked-questions","Frequently Asked Questions",[99,100,102],"h3",{"id":101},"what-is-the-main-advantage-of-blue-green-deployment","What is the main advantage of blue-green deployment?",[13,104,105],{},"The main advantage is near-instant rollback with no downtime, because the previous version keeps running until the new one is proven.",[99,107,109],{"id":108},"what-is-the-main-drawback-of-blue-green-deployment","What is the main drawback of blue-green deployment?",[13,111,112],{},"It needs two full production environments during a release, and database changes must work with both versions at once.",[16,114,116],{"id":115},"related-terms","Related Terms",[118,119,120,125,131,137,143],"ul",{},[45,121,122],{},[74,123,124],{"href":76},"Canary Release",[45,126,127],{},[74,128,130],{"href":129},"\u002Fglossary\u002Frollback","Rollback",[45,132,133],{},[74,134,136],{"href":135},"\u002Fglossary\u002Ffeature-flag","Feature Flag",[45,138,139],{},[74,140,142],{"href":141},"\u002Fglossary\u002Fcontinuous-deployment","Continuous Deployment",[45,144,145],{},[74,146,148],{"href":147},"\u002Fglossary\u002Fchange-failure-rate","Change Failure Rate",{"title":150,"searchDepth":151,"depth":151,"links":152},"",2,[153,154,155,156,157,158,163],{"id":18,"depth":151,"text":19},{"id":29,"depth":151,"text":30},{"id":36,"depth":151,"text":37},{"id":68,"depth":151,"text":69},{"id":81,"depth":151,"text":82},{"id":96,"depth":151,"text":97,"children":159},[160,162],{"id":101,"depth":161,"text":102},3,{"id":108,"depth":161,"text":109},{"id":115,"depth":151,"text":116},"Blue-green deployment is a release technique that runs two identical production environments and switches all traffic from the old version to the new one.","md",{"category":167,"tags":168},"B",[169,170,171],"Release Strategy","Infrastructure","Software Delivery",true,"\u002Fglossary\u002Fblue-green-deployment",{"title":5,"description":164},"glossary\u002Fblue-green-deployment","It1YLZnfV8ia_AQvPHbqsPH-1m0DrUG-3Bg-Qde1ECM",1795595213014]