The Wayback Machine - https://web.archive.org/web/20240927174914/https://www.geeksforgeeks.org/aws-disaster-recovery-strategies/
Open In App

AWS Disaster Recovery Strategies

Last Updated : 16 Oct, 2020
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Disaster recovery is one of the main requirements of making Cloud architectures today. This disaster may be a production bug, fault made by the developers, or maybe a flaw at the end of AWS Service itself. Disaster recovery is an essential part of applications. Before diving into AWS Disaster recovery strategies let’s understand some terms related to Disaster Recovery.

Recovery Time Objective (RTO): RTO is the maximum time span in which a service can remain unavailable before being damaging to the business.   

Recovery Point Objective (RPO): RPO is the maximum time for which data could be lost if a system goes down.

RTO-RPO Image

RTO-RPO Image

In the above example, the system goes down at 2 pm and is recovered to its normal state by 6 pm evening. This means that the Recovery Time Objective for the above situation is 4 hours. Similarly, say that the above scenario takes backup every 2 hours and the last backup is taken for the system was at 12 pm (marked by the green arrow). Since the system went down to This means that the data between 12 pm to 2 pm is lost and only the data or the system state at 12 pm can be recovered. This means that the Recovery Point objective for the above problem is 2 hours.

The choice of your architecture and data backup solution will solely depend upon how much RPO and RTO can your application support without being harmful to your business.

Different disaster recovery strategies

Backup and restore:

In this strategy, you take frequent snapshots of your data stored in EBS volumes and RDS databases and store these snapshots in a reliable storage space like AWS S3. You can regularly create AMIs of your servers to preserve the state of your server. This will preserve all the software and software updates on your server and IAM permissions associated with the server. Backup and Restore basically uses AWS as your virtual tape library. This strategy can not only be done for AWS applications but also for your on-premise applications. AWS Storage Gateway allows you to take and backup snapshots of your local volumes and store these snapshots in AWS S3. This is the slowest of the Disaster recovery strategies and is best used in accordance with other strategies. Storing backup data in AWS Glacier can help further reduce the costs of the strategy.

  • RTO- High (Example: 10-24 Hrs)
  • RPO- Depends on the frequency of the backups. Which can be hourly, 3 hourly, 6 hourly, or daily.

Pilot Light: 

In this strategy, a minimal version of the production environment is kept running on AWS. This does not mean the entire application scaled down (warm standby) but configuring and running only the core and the most critical components of the production environment. When disaster strikes an entire full-scaled application is rebooted around this running core. Pilot Light is more costly that Backup and Restore as you have some minimal services of AWS running all the time. This strategy also involves provisioning infrastructure using cloud scripts like AWS CloudFormation scripts for an efficient and quick restoration of the system.

  • RTO- High but less than backup and restore. Example: 5-10 hours.
  • RPO- Same as RPO for Backup and Restore i.e. depends on the frequency of backups. Even though a minimal core environment is running the data recovery still depends on backups.

Warm Standby:

As the name suggests warm standby strategy involves running an extremely scaled-down, but a full-fledged, fully functional application similar to your production application always running in the cloud. In case of failure or disaster, the warm standby application can be immediately scaled up to serve as the production application. EC2 servers can be left running to a minimal number and server type and can be scaled up to serve as a fully functional application using AWS AutoScaling features. Also, in case of failure, all DNS records and traffic routing tables are changed to point to the standby application rather than the production application. For quickly changing data architects will have to reverse duplicate data from the standby site to the primary site when the primary production environment takes over.

  • RTO: Lower than Pilot light.  Example:< 5 hours.
  • RPO: Since the last data write to the master-slave Multi-AZ Database.

Multi-Site:

As the name suggests, the multi-site strategy involves running a fully functional version of the production environment as a backup in the cloud. This is a one-to-one copy of your primary application that is typically run in a different Availability Zone or an entirely different region for durability. This is the most expensive of all the DR options as it makes your running costs double for running a single application. The cost overhead is compensated by the smallest RPO and RTO offered by the Multi-Site DR strategy. The RPO timings however may vary from system to system according to their choice of data replication methods (Synchronous and Asynchronous). As soon as failure strikes the developers only have to change DNS records and routing tables to point to the secondary application. 

  • RTO: Lowest of all DR strategies. Example: < 1 hour.
  • RPO: Lowest of all DR strategies. Choice of data replication affects RPO. The last data is written in a synchronous database.

Cloud Computing is one of the biggest assets to developers and investors out there to make highly efficient, simple applications and still have a cheaper cost structure. Backups in a traditional (non-Cloud) way can be more costly, inefficient, and are prone to hardware issues and manual errors. AWS offers backup strategies, not only for AWS applications but also for your on-premise applications which can leverage AWS to have a backup. Cloud backups provide a lot of benefits over the traditional backup system. Such as:

  • Low Costs
  • Fully AWS managed.
  • Secure and reliable.
  • No hardware maintenance.
  • Off-Site backup
  • Easy to access and test using Cloud Infrastructure.


Similar Reads

What is Data Backup and Disaster Recovery?
Data security remains critical at whatever point personal and expert interests are conducted practically in an exceptionally connected existence where information is the lifeblood. Therefore, the following article outlines the enlightened features of keeping your own cloud. Cloud backup and disaster recovery. From definitions of significant topics
15+ min read
Differences Between Disaster Recovery and Business Continuity in Cloud Computing
Recovering from a crisis in cloud computing means getting back data and IT structures to maintain business activities. On the contrary, Business Continuity in cloud computing means plans and strategies for running critical business functions during and after a disaster. Whereas Disaster Recovery is more oriented on fixing data and system components
5 min read
AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation
Overview :AWS lists out a wide range of services when it comes to supporting DevOps. Be it in terms of Integration, Delivery, Strategies, Infrastructure as a Code. OpsWorks falls under Config management service, CloudFormation helps to maintain Infrastructure as a code and AWS Beanstalk offers easy web deployment. Let's understand each one of them.
3 min read
6 Strategies for Migrating Applications to AWS Cloud
In this article, we will look into the ^different application migration techniques on AWS also known as the "The 6 R's". Strategies for Migrating Applications to the CloudMigrations shouldn't be taken lightly, and need plenty of investment long before you're taking your first migration step.it is important that you just determine what's in your env
4 min read
How To Create Spot Instance In Aws-Ec2 In Aws Latest Wizards?
Spot instances are available at up to 90% discount because when instances are not used then the instance available in spot instance at a cheaper rate so that people can utilize. it. When the demand increases then amazon sent a notification your spot instance will disappear after two minutes. We can use it for temporary work if our data losses it wi
6 min read
Amazon Web Services - Using Single SSH Key For all AWS Regions
Secure Shell also known as SSH is a cryptographic network protocol that helps secure network services over an unsecured network. It securely helps users to log in to a server with SSH than using a password alone. SSH keys are nearly impossible to decipher by brute force alone unlike passwords. In this article, we are going to look into how users ca
2 min read
Introduction to AWS Elastic Beanstalk
AWS Elastic Beanstalk is an AWS-managed service for web applications. Elastic Beanstalk is a pre-configured EC2 server that can directly take up your application code and environment configurations and use it to automatically provision and deploy the required resources within AWS to run the web application. Unlike EC2 which is Infrastructure as a s
6 min read
How to Pass the Query String Parameters to AWS Lambda Function or HTTP Endpoint?
In this article, we will explore the process of passing query string parameters from a client to the Backend Lambda or HTTP endpoint API gateway. As we know there are two types of integrations for Lambda and HTTP endpoints. The first kind is Proxy integration and second kind is Non-proxy integration. While proxy implementation is the recommended ap
4 min read
Difference Between Google Cloud and AWS
Google Cloud Platform: It is a suite of cloud computing services developed by Google and launched publicly in 2008. Google Cloud Platform provides IaaS, PaaS, and serverless computing environments. A comparatively new Google Cloud Platform has all the tools and services required by developers and professionals. Amazon Web Services(AWS): It provides
3 min read
Introduction to AWS Compute
AWS compute is an Infrastructure As A Service(IAAS). Put simply, AWS compute is the means to provision and manage infrastructure(virtual machines/containers) for your use case. AWS provides many flexible computing services so as to meet the requirements of business organizations like Amazon Elastic Compute Cloud (EC2), Amazon Elastic Container Serv
5 min read
Introduction to AWS Elastic File System(EFS)
AWS(Amazon Web Services) offers a wide range of storage services that can be provisioned depending on your project requirements and use case. AWS storage services have different provisions for highly confidential data, frequently accessed data, and the not so frequently accessed data. You can choose from various storage types namely, object storage
9 min read
Difference between AWS and Heroku
1. Amazon Web Services (AWS): Amazon Web Services are the cloud platform services that offer Infrastructure as a service (IaaS) products. It offers many services to its users which incorporates management, and analytics with data. It is an immense collection of cloud services for all needs. It is termed as a Substation of storage, database, and dep
3 min read
What are AWS Storage Options?
As cloud technologies are getting evolved and solving many practical problems that occur while you want to maintain your application in the cloud. We will see what are the storage options are present in AWS and how it is solving the problems and how we can use these services to take the benefits that can leverage the application. Instance store is
7 min read
How to Configure AWS Lambda?
AWS Lambda is a responsive cloud service that examines the steps followed within any application and responds to them by compiling the codes that have been defined by the users, also known as functions. The service automatically computes and manages the resources across multiple availability zones and functions through them whenever new actions are
4 min read
What is AWS EC2 Instance Storage?
EC2 Instance storage is the temporary block storage service provided by AWS. EC2 instance storage, in itself, is not a storage service, but essentially it is a part of the EC2 service. These storage devices physically lie on the same host that provides the EC2 instance and are essentially useful to store temporary data associated with the EC2 insta
2 min read
Amazon Web Services - Copy an Amazon Redshift Cluster to Different AWS Account
In this article, we will look into how to copy an Amazon Redshift cluster from one account to a different account. Usually, users perform this operation from a production account to a quality account but you can use the steps to move a cluster from one account to another account in the same region. To do so follow the below steps: Step 1: In the ac
3 min read
L.A.M.P. Stack Setup in AWS
Amazon Web Services (AWS) is one of the global leaders in IaaS (Infrastructure-as-a-Service) and PaaS (Platform-as-a-Service) for cloud ecosystems, that is used to create a scalable cloud application. So in this article, we are going to learn how to set up a web server (L.A.M.P. stack) by using AWS EC2 service. Getting started (Creating instance) F
4 min read
Creating a gateway | AWS Storage Gateway
In this article, we will explore the process of creating, deploying, and activating a file gateway. Choosing a gateway type With the help of a file gateway, you store and retrieve objects in Amazon S3 using a local cache for low latency access to the most recently used data. To choose a gateway type:Open the AWS Management Console at https://consol
6 min read
AWS Lambda - Copy Object Among S3 Based on Events
In this article, we will make AWS Lambda function to copy files from one s3 bucket to another s3 bucket. The lambda function will get triggered upon receiving the file in the source bucket. We will make use of Amazon S3 Events. Every file when uploaded to the source bucket will be an event, this needs to trigger a Lambda function which can then pro
3 min read
AWS DynamoDB - Read Data from a Table
AWS DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value and document data. It stores data in form of an item. An item consists of attributes. Upon table creation in DynamoDB, it only requires a primary key to differentiate between items and no schema is to be defined. Each item can have a different number of attribu
3 min read
AWS DynamoDB - Query Data in a Table
Amazon DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value pair and document data. A table in DynamoDB stores data in form of an item and each item has a primary key. Example: { "Color": true, "Director": "Christopher Nolan", "MovieID": 1, "Name": "Inception", "Rating": 8.7, "Year": 2010 } The Query operation in Ama
2 min read
AWS DynamoDB - Working with Scans
Amazon DynamoDB is NoSQL managed database that stores semi-structured data like key-value pairs and document data. When creating tables in DynamoDB, no schema structure is required but only a partition key (primary key) is required. DynamoDB tables stores data in form of items and each item consists of attributes that are nothing but key-value pair
3 min read
AWS DynamoDB - Write Data to a Table
In this article, we will write data to a table in DynamoDB. DynamoDB is a NoSQL database that supports semi-structured data i.e. key-value and document data structures. A DynamoDB table contains items. An item is a collection of attributes and each item has a primary key that should be not null. Also, each item can have a different number of attrib
2 min read
Amazon Web Services - Creating a User Pool in AWS Cognito
A User pool in AWS Cognito is a user directory, which helps users to sign in to your web or mobile app through AWS Cognito. Users can also sign in through other social platforms like Google, Facebook, Amazon, or Apple. It doesn't matter users can directly sign in or use a third-party authentication, all these users in the User pool have a profile d
3 min read
AWS DynamoDB - Update Data in a Table
Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an item. While creating a table in DynamoDB, a partition key needs to be defined which acts as the primary key for the table and no schema. Each item consists of attributes. By default, every i
2 min read
AWS DynamoDB - Working with Items & Attributes
AWS DynamoDB is a NoSQL managed database that stores semi-structured data i.e. key-value and document data. It stores data in form of an item. An item consists of attributes. Upon table creation in DynamoDB, it only requires a primary key to differentiate between items and no schema is to be defined. Each item can have a different number of attribu
3 min read
AWS DynamoDB - Query the Global Secondary Index
Global Secondary Index is an index with a partition key and a sort key that can be different from keys in the base table. A global secondary index is said to be "global" because queries on the index can cover all the data in the base table, across all partitions. A global secondary index has no size limitations like that of the base table and has i
2 min read
AWS DynamoDB - Working with Tables
In this article, we will work on DynamoDB tables. DynamoDB is a NoSQL database that stores document data or key-value pairs. A Dynamodb table consists of items and each item is made up of attributes. Different items can have different attributes. See the below example: Example 1: { "MovieID": 123, "Name": "Godfather", "Rating": 9.1, "Year": 1972 }
3 min read
AWS DynamoDB - Create a Global Secondary Index
Amazon DynamoDB is a NoSQL-managed database that stores data in the form of key-value pairs and document data. A Dynamodb table stores items which are nothing but key-value pairs. By default, each item will have a partition key to differentiate between the items. When need to perform many kinds of queries, taking different attributes as query crite
2 min read
AWS DynamoDB - Working with Queries
Amazon DynamoDB is a NoSQL managed database service provided by Amazon that stores semi-structured data like key-value pairs. A DynamoDB table consists of items. Each item consists of one partition key and one or more attributes. An example of an item is given below: Example: { "MovieID": 101, "Name": "The Shawshank Redemption", "Rating": 9.2, "Yea
5 min read