<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by AYMERIC BAUDENS on Medium]]></title>
        <description><![CDATA[Stories by AYMERIC BAUDENS on Medium]]></description>
        <link>https://medium.com/@aymeric.baudens?source=rss-5a83b5df945a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8q-GUe4k6iay2E8DjZBhkw.jpeg</url>
            <title>Stories by AYMERIC BAUDENS on Medium</title>
            <link>https://medium.com/@aymeric.baudens?source=rss-5a83b5df945a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:08:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aymeric.baudens/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Back from disaster in (under) 15 minutes — Part III/III]]></title>
            <link>https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-iii-iii-d760cf723f9?source=rss-5a83b5df945a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d760cf723f9</guid>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[crisis]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[AYMERIC BAUDENS]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 07:52:52 GMT</pubDate>
            <atom:updated>2023-02-06T08:08:57.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Back from disaster in (under) 15 minutes — Part III/III</h3><p>Part3: Return of experience — how did our first exercise go ?</p><p>This 3 part article presents a pan-european ecommerce platform consisting of hundreds of distinct products developed by independent teams, sporting a microservice architecture and sharing a common technical platform. We want to show how to recover from a resource failure disaster in (under) 15 minutes.</p><p>In <a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-i-iii-dfcbf15b5854">Part 1</a>, we discussed our design choices and the motivation, as well as the tools needed to make disaster recovery a reality. <a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-ii-iii-fa758561a376">Part 2</a> detailed the switchover automation. This third part will relate when theory meets practice.</p><p>Any disaster recovery plan looks well on paper. Testing it in a dedicated “proof of concept” environment shows it <strong><em>could</em></strong> work. But in the middle of a real life crisis, when the time comes to hit the “emergency” button to fire the failover automation, plenty of questions will make you hesitate: will it work at scale? How long will it take to complete? What do the users see? Will we face any side effects? Shall I trust the plan finally?</p><h3>Scope</h3><p>The only way to avoid the incertitude is to regularly test the DRP. Now how do you do disaster recovery with 200+ products that are running daily ?</p><p>The easy step is first to test our pre production environment. Next we decided to cover the products progressively. We worked closely with feature teams in charge of highly critical products for our business — in store or on website — such as product catalog, product search, mobile device capabilities, order management, payments, delivery, etc.</p><p>A panel of 15 products was selected for a first iteration to cover a large set of failure possibilities in all major functional contexts. The number of products still allow individual attention should things go wrong during the exercise.</p><h3>Timeline</h3><p>Finally, the moment to trigger the switchover in real life for the first time has come! We decided to run the automation on day one and roll back to our nominal region 2 days later. This way, we could also ensure that products run without any impact on recovery infrastructure for more than a complete 24-hour cycle, and observe how our platform behaves as a whole while changing regions. During the test, all stakeholders were involved as observers and ready to intervene.</p><p>Performance data was captured simultaneously with standard production load.</p><h3>Forwards…</h3><p>Technically the failover automation took 15 minutes to run, but didn’t complete the run. As expected, we had some unexpected events! Mainly minor automation bugs and misunderstanding errors and timeout management. Well that’s what exercises are for: identify issues that a dry run cannot detect.</p><p>To finish some teams had to manually run part of the workflow to <em>help it to complete</em>, and to correct some design issues. It took 2 hours to bring the platform back to a fully functional status.</p><p>In all, user impact was limited since only a few products were concerned. On the production environment, the impact <em>would have been</em> errors on a few pages at some specific points of the user journey, until products were fixed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OTzWA3dF2EojYAdL" /><figcaption>Errors seen from end users point of view during the switchover, until manually fixed</figcaption></figure><h3>…and back</h3><p>The same workflow is used to revert the infrastructure back to the original region. Thanks to lessons already learned 2 days before, identified bugs have been corrected. This time it ran to completion without any human interaction, in less than 13 minutes.</p><p>For website simulated end users, the operation was more smooth with only a few errors on some functions in the 2 minutes it took to concretely switchover DBs and traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jp7w-J-znJmpPaQx" /><figcaption>Some errors seen during 2 minutes from end user point of view during failover</figcaption></figure><h3>Usefulness of observability</h3><p>In a disaster scenario, we need more than launching an automated workflow, and then wait to finally know if it went well or wrong. Our monitoring (side) solution tells us exactly where we are in the workflow, what is done, what is ongoing, what has failed, and all that in real time.</p><p>In case of an issue during a failover, we knew that time is very important; but we are now also convinced that monitoring drastically decreases stress. In addition to reducing the recovery time, well-done monitoring provides teams with a sense of control, calm thoughts and helps to think without stress!</p><h3>What went well</h3><p>Good news: the first take-away from this exercise is that it works! Our disaster recovery plan did what it was designed to, behaving at scale like how it was working with a single app.</p><p>Questions regarding delays needed to orchestrate moving multiple apps are answered, and the figures are pretty good: 13 minutes failover, and errors / latency during only 2 minutes.</p><p>We’ve also confirmed how helpful the monitoring tool is. As argued previously, we ensured the quality of observability was good at every step of the automation with the objective to always see what’s happening in real time. Goal reached: teams were in total control all along the way.</p><p>But the best benefit from this exercise is the overall confidence gained regarding the solution! Trust me, the atmosphere was totally different between the forward and back operations. While stressed for the first run, we were fully confident during rollback. Knowing exactly how the solution behaves totally changes things. It was close to a non-event actually.</p><h3>What went wrong: lessons learned</h3><p>Benefits of this exercise also come from what did <strong>not </strong>go as planned!</p><p>For example we’ve highlighted that some product configurations were incorrect. E.g. some DB services were not configured to allow connections from recovery clusters, and some minor workflow bugs were identified, non reproductible in dry runs.</p><p>Once identified, that has been all corrected quickly, and was absent during rollback.</p><p>We also faced some long running operations, but the workflow has been designed not to wait till these tasks ended — provided that they are not on the critical path — after a defined timeout.<em> </em>We just need to make it more obvious if such tasks have failed, asynchronously.</p><p>And finally, we also found unexpected external dependencies with certain legacy apps. We don’t want to deal with it while setting up a DRP, that’s just a factual reminder to decommission legacy infrastructures while moving to the cloud.</p><h3>Limitations</h3><p>What we’ve achieved here is great: great for the guys involved, great for the company, great for our customers. But that’s only the beginning of the road. We did this in pre-production. The next challenge is the production environment exercise to come soon, of course.</p><p>We did it with <em>only</em> 15 products, albeit critical ones; there are some 185 other products to be handled.</p><p>And for this reason, we did not stop nominal ressources during the exercise, to not impact all the products not onboarded yet. We know that, with our 15 DRP-compliant products only, business services could not have been rendered anyway.</p><p>And finally, we were not in a full crisis event, involving time to detect the failure and scope it, time to evaluate resumption delay and time to decide. The latter won’t be negligible for sure!</p><p>One step at a time!</p><h3>Next round expectations</h3><p>The perfect solution cannot be found at the first try! So, on our iterative approach, we’ve pushed some topics to the next iteration.</p><p>Of course we plan to repeat the test in production with the additional products ready by then. But the disaster recovery solution itself can also be improved in several ways.</p><p>We need to make it more cost efficient by minimizing the footprint of recovery infrastructures, while guaranteeing their immediate availability when needed.</p><p>We will change the exercise approach: not the exceptional exercise to run a few hours or days on a recovery system instead of running on a nominal system. It would be more beneficial to have a ‘A’ site and a ‘B’ site, and then switch from one to the other regularly, and stay for one month at a time.</p><p>For the mid term approach, we will invest in another cloud outside GCP to host our ‘B’ site, making our platform even more resilient. This should be achievable with little rework thanks to the Kubernetes + DBaaS providers approach.</p><p>Then other topics will be studied such as finer failover scopes — should/could it be a single product switchover ? — or making both regions active together and serving traffic for an even better availability rate.</p><p>Anyway, continuously improving our Disaster Recovery Plan is probably the best way to keep it alive and fully ready, for the day we will need it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d760cf723f9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-iii-iii-d760cf723f9">Back from disaster in (under) 15 minutes — Part III/III</a> was originally published in <a href="https://medium.com/adeo-tech">ADEO Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back from disaster in (under) 15 minutes — Part II/III]]></title>
            <link>https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-ii-iii-fa758561a376?source=rss-5a83b5df945a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa758561a376</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[AYMERIC BAUDENS]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 12:46:33 GMT</pubDate>
            <atom:updated>2022-11-22T12:48:49.711Z</atom:updated>
            <content:encoded><![CDATA[<h3>Back from disaster in (under) 15 minutes — Part II/III</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w1V4wSikVT19_-Y1-cb_8w.png" /></figure><p>Part 2: Failover automation</p><p>This 3 part article presents a pan-european ecommerce platform consisting of hundreds of distinct products developed by independent teams, sporting a microservice architecture and sharing a common technical platform. We want to show how to recover from a resource failure disaster in (under) 15 minutes.</p><p>In the <a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-i-iii-dfcbf15b5854">first part</a>, we discussed our design choices and the motivation, as well as the tools needed to make disaster recovery a reality. This part 2 details the switchover automation. The third part will relate when theory meets practice.</p><h3>Where were we?</h3><p>Even if the stateless front layer is already ready, a failover requires moving the DB masters or primaries to the recovery region — of all our products at the same time while updating DNS to point to the recovery region. We must fully automate it to make these actions achievable in quick time by a single team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_NlaJqrKzxJWG7Q0" /><figcaption>Failover consists of making data live and routing the traffic both on the other region</figcaption></figure><p>But this platform-wide automation is a management nightmare.Nobody has a consistent view of the components of each product. Cloud native referential are volatile, incomplete, often deprecated: in short, inaccurate. So how to trigger failover for all products without knowing the details of each ?</p><h3>Centralized decision with distributed knowledge</h3><p>We solved this unsolvable problem by splitting responsibilities. Failover is orchestrated by a general GitHub Action pipeline that:</p><ul><li>performs prerequisite checks and common tasks,</li><li>activates in parallel custom product workflows provided by the product teams themselves, based on a common template</li><li>using in-house Github actions for generic tasks such as DB Failover, to ensure implementation consistency and quality</li></ul><p>As we don’t like surprises in crisis management, all this workflow is tested on a daily basis in a dry run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*egavJ7d_g55DGB8o" /><figcaption>Centralized pipeline, distributed sub workflows, common actions</figcaption></figure><h3>Switchover as code</h3><p>Most importantly the switchover<strong> </strong>process is orchestrated via a single platform-wide pipeline, our famous big red “emergency” button that we hit in case of disaster. It takes several parameters such as the failover direction, the environment, is it a dry run or for real, etc… All these parameters are propagated to product workflows where needed.</p><p>Once triggered, it first checks that all the tools relied upon are running: don’t engage in failover if our artifact repository, configuration manager or DB service provider APIs are offline for example (they are SaaS services running elsewhere and incorporate their own recovery solution).</p><h3>A single bandmaster</h3><p>After stating that conditions are met for a failover to succeed, the process prompts for and records the approval authority: triggering Disaster Recovery carries responsibility. Despite restricted access to this pipeline, we log each action. Every product workflow will then be triggered in parallel, waiting for their completion (or timeout) before proceeding to the traffic switchover.</p><p>Switchover also handles some technical tasks such as configuring the web site to print the “site in maintenance” message for example, and sending metrics to our observability solution for a real-time understanding of the Switchover process.</p><h3>Custom product workflow</h3><p>All product workflows are based on the same template (pre-configured to ingest parameters and to send metrics and events uniformly). They are of course adapted to the product context. Each product team will write the code to automate failover in its own perimeter. All these workflows will then be registered into the platform workflow and become part of the platform DRP.</p><p>But finally, even if each product team manages its own components, ways of doing things are similar after all…</p><h3>In-house Github Actions for common tasks</h3><p>As part of the custom workflow that each product team will code to implement failover for their product, there are tasks that are common across products and it pays to design standard code for them. Such tasks should be done in a standard way, configured similarly for error trapping, timeout after the same delay or managing the dry-run parameter consistently.</p><p>They are sourced out of custom workflows into standard in-house Github Actions and simplify the work of product teams who only have to invoke them and provide the mandatory parameters.</p><p>DB switching is a good example: actions will request DB provider APIs to change node priorities of a mongoDB cluster to force a new primary election in the other region, or promote a postgresql read replica instance to master and stop the previous deprecated master, avoiding missed write operations.</p><h3>How to observe: be sure you’re always ready</h3><p>Deciding to trigger a failover is hard. Dashboarding is mandatory to make it obvious if you’re ready to switch or not: products and platform health, results of the last dry run, resources availability on the recovery region, anything that could help to remove any doubt you may have about the success of your disaster recovery plan when you really need it.</p><p>When disaster strikes, it’s too late to wonder if your plan would work, if the automation is up to date or when was your last successful exercise. DRP readiness should be included in platform health dashboards examined daily.</p><h3>Avoid the tunnel effect</h3><p>OK, you just hit the big « emergency failover » red button. Not knowing what’s actually going on could worsen the situation. So, every single step of the automation, either be it platform or product level, must tell you what’s happening in real time. Every step is configured to log in a monitoring timeline with step name, involved component and status. We immediately detect if something goes awry, understand and correct it, even manually, to minimize the impact to recovery time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*sjG8n4wtaPnsqJrd" /><figcaption>Pink bars for the beginning and the end of pipeline execution, one colored dot per product</figcaption></figure><p>When facing a disaster, teams and top management must know clearly where we are, have an idea of the expected resumption time, even in the middle of the night. There’s no time for approximation; the situation must be visible and understandable in a split second. You will be more than happy that you invested on observing the automation, during such a stressful situation for real.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*Y70OMoXSpp2Osxu2" /><figcaption>Per region traffic routing and clusters load evolution during a switchover started at 9:39 from EUW4 to EUW1</figcaption></figure><h3>Process</h3><p>Once everything technical is in place, related business processes have to be built: what is exactly a disaster? Which events will lead to trigger a failover? Will switching be quicker than repairing? Who will decide it — and be sure that deciding to switch will be longer than switching itself — ? Who will press the button? All these crisis management questions won’t be addressed here, but must be answered and validated in regular exercises also.</p><h3>So now, Action!?</h3><p>We have the solution in place, and the automation ready to perform the switch for us. Daily dry-runs tell us that it — should — work… There’s only one way to turn from “should work” to “will work”: Bring everyone involved together and push the red button!</p><p>Stay tuned for the last part of this article, where we will tell you how our first DRP exercise went!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa758561a376" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-ii-iii-fa758561a376">Back from disaster in (under) 15 minutes — Part II/III</a> was originally published in <a href="https://medium.com/adeo-tech">ADEO Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back from disaster in (under) 15 minutes — Part I/III]]></title>
            <link>https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-i-iii-dfcbf15b5854?source=rss-5a83b5df945a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfcbf15b5854</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[resilience]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[AYMERIC BAUDENS]]></dc:creator>
            <pubDate>Tue, 04 Oct 2022 08:50:19 GMT</pubDate>
            <atom:updated>2022-10-04T08:50:19.983Z</atom:updated>
            <content:encoded><![CDATA[<h3>Back from disaster in (under) 15 minutes — Part I/III</h3><p>Part 1: design &amp; tooling</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOf_rPb8bgrc4lLWKnd6aw.png" /></figure><h3>Why a Disaster Recovery Plan (DRP)?</h3><p>Here is the context: more than 200 IT products, developed by as many product teams, all interdependent and sharing a common technical platform. All these products support a microservice-based ecommerce website and numerous applications running in hundreds of physical stores all over Europe. On the average, some 100.000 requests or messages are made every second, contributing to hundreds of sales per minute (you get the idea).</p><p>If this system stops working, our business simply stops… Every single minute of downtime impacts the turnover, keeps customers waiting, and gives the company a bad reputation.</p><p>It is certainly worth investing in a plan allowing you to recover quickly from events that disrupts business continuity: a disaster recovery plan.</p><h3>Keep running despite resource failure</h3><p>How to make this entire system resilient to any resource failure? To a loss of a Google Cloud availability zone or even to a loss of a whole region ? Let’s explore our options. Oh, and to spice it up a bit, our recovery time objective is 15 minutes…</p><p>We will present our solution in three parts. The first part will cover the technical architectural choices and reasons. The second part will detail the switchover mechanisms, and the last part will relate our experience on our first DR exercise. This blog article is the first part.</p><h3>Our technical landscape</h3><p>Fortunately, our platform was created recently, cloud native from the beginning. Consequently, it makes use of current market standards: Google Cloud Platform (GCP) for the shell, containerized apps running in Kubernetes (or K8s) clusters for the front/compute and managed database services for data such as MongoDB Atlas or Aiven PostgreSQL.</p><h3>First of all, remove any single points of failure</h3><p>One of our architecture principles is a Kube strategy, the best path for us between infrastructure layer abstraction, and hosting agnosticism. Consequently, all our microservices can run on a common GCP managed Kubernetes cluster (GKE) and could run on any K8s service hosted elsewhere ! Some figures to understand how big this cluster is: more than 220 nodes, hosting 4800 deployments in 1500 namespaces, running 11000 pods… This GKE service is robust and will natively mitigate several risks: pod failure, cluster node failure, availability zone downtime provided it has been built in a multi-zone manner. Good.</p><h3>But we still have to deal with other risks</h3><p>First of all, this service has obviously not a 100% guaranteed availability and will fail nonetheless. Then despite it being a managed service, manual maintenance operations will be performed on it, with the risk of human error. And finally, this service won’t survive a disaster affecting the whole GCP region it is running on.</p><p>To mitigate these risks, we have doubled the GKE clusters on our nominal region (to cover cluster scale failures, and allow maintenance to one cluster at a time, in a rolling upgrade manner), making them both active and serving half of the load each.</p><p>But even if a region relies on 2 or 3 availability zones, sites are geographically close to each other and a global region outage can still happen anytime. To stand a whole region loss, two additional clusters are running in our recovery region (~400km away), as a mirrored passive infrastructure, ready to take over in case of disaster affecting the primary region.</p><p>We so end up with a highly available, disaster proof platform running on 4 independent k8s clusters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QBHzIO6jlbgxMA-N" /></figure><h3>Keep the life of our developers simple!</h3><p>Deploying a huge app over 4 different clusters would be a nightmare to manage: a DRP solution that introduces complexity and risks in our daily tasks is a bad solution. Fortunately, ADEO has been investing for several years in building <a href="https://medium.com/adeo-tech/turbine-an-in-house-cd-that-enables-each-teams-deploying-in-the-cloud-11cd47410c26">Turbine</a>, an in-house CD tool that simplifies software deployment over k8s clusters. It now provides us one-click deployment on multi-clusters, which is our fundamental requirement. Just tell Turbine to deploy what, where and when, it is as good as done, time after time !</p><h3>Traffic routing</h3><p>Now that the compute layer is highly resilient, how can we route the traffic on the right cluster: dynamically, seamlessly and in a push-button approach. We can’t afford to update the target URL in numerous tools and apps… and we don’t want to add load balancers on the road either (which would incur problems such as latency, managing SSL certificates, etc.).</p><h3>Back to basics: DNS resolution</h3><p>There are many solutions to forward traffic from one point to another. But Keep It Simple and Stupid!</p><p>Simplicity is correlated to our collective capacity to operate the solution over time! Simply introduce dedicated Domain Name System (DNS) entries, with 5 minutes Time To Live delay (TTL) so that the solution is reactive, and update those entries to make them point where you want: on both active clusters to load balance the traffic, on a single cluster to perform maintenance on the other one, or on secondary region clusters to recover from a disaster… One click operation, dynamic, and smooth!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TpzahaaWkhBKg2rJ" /></figure><h3>Let’s make data layer globally resilient also</h3><p>Unlike for the stateless front layer, the data layer can’t be live (and consistent!) omnipresent simultaneously.Without deeply redesigning most of our applications using asynchronous events design, the best solution is to use database replication capabilities: global MongoDB clusters, PostgreSQL read replicas, etc. Design patterns used are aimed to stick to the front resilience rules: HA on the nominal region with two cluster nodes, and recovery nodes on the fallback region. According to the way the DB engine works and the risk of split brain, an additional arbitrary node may be needed in a third region. Of course, these design patterns increase data availability and do not remove requirements for a backup policy to secure data integrity.</p><p>Application configuration is made locale aware, and retrieves some DB connection string depending on the region the pod is launched on. So that we avoid pods from one region connecting to the DB nodes running on the other one : cross-region connections are expensive and affect latency.</p><p>Some fine tuning in replication settings is needed with product teams, according to their individual recovery point objective: depending on their business role, do they prefer to maximize performance, by accepting eventual consistency? Or do they rather need to guarantee consistency, or to not lose the last committed transaction, at the expense of some ms? Depending on the DB technologies, we will adjust read preference / write concern, synchronous replication, etc… But this choice is up to the product teams, we can’t make it globally for the 750 database services storing and serving platform’s data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ZAdI-B22FnEQ7N5" /></figure><h3>Everything is now in place: Action!</h3><p>To sum up, we now have highly available applications on our nominal region, mirrored in our recovery region, both are ready to serve user requests at anytime. We also have our data globally replicated but active in only one region at a time, requiring a few minutes each to failover. We can now update our DNS entries to route traffic where it should in 5 minutes. Ready for a failover? Really?</p><p>Have you ever tried to ask a large group of people traveling individually, each taking their own transport and trajectory, to all arrive in the same place exactly at the same time? Most of them will be there, but some may be late, some may be on time but at the wrong place, and a few will be both late and lost… For the same reason, we can’t let each product team manage its own failover, otherwise we won’t succeed in shortly moving the platform as a whole.</p><p>Stay tuned for the second part of this article, which unveils the deep details of failover automation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfcbf15b5854" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adeo-tech/back-from-disaster-in-under-15-minutes-part-i-iii-dfcbf15b5854">Back from disaster in (under) 15 minutes — Part I/III</a> was originally published in <a href="https://medium.com/adeo-tech">ADEO Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>