Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal


Five best practices for designing applications that can withstand AWS outages

Design for failure, nothing will fail

One of the key characteristic of Amazon Web Services (AWS) platform is its high availability.  Standard availability figure is five 9’s, that is five and half minutes in a year. However, AWS outages occurred in the past clearly indicates that outages can happen and only those apps or services that are designed for failure can withstand outages with less impact to business continuity.  This emphasizes “design for failure” as one of the key design attribute to be considered while architecting for AWS platform.

AWS public cloud infrastructure is built in such a way that the control of application availability is in the hands of the designers or developers, so if designed and implemented well, it is possible to make applications running on AWS withstand infrastructure outages. This article looks at few best practices that are key to “design for failure” on AWS platform:

1. Failover gracefully using Elastic IPs

Elastic IP Addresses are public IP addresses that can be routed to any EC2 instance within a  region.  During an outage, an elastic IP address can be detached from a failed instance and then mapped to a replacement instance programmatically within a very short time frame.  This helps in failing over to another instance quickly.

2. Utilize multiple Availability Zones:

In AWS infrastructure, Availability Zones (AZ) are considered as independent logical datacentres.  Application architecture can be deployed to multiple availability zones to ensure high availability.   Type of AZ configuration determines the level of Recovery Point Objective (RPO) & Recovery Time Objective (RTO) for disaster recovery (DR) and business continuity (BC).   Databases can also be replicated across multiple availability zones by utilizing Amazon RDS Multi-AZ deployment functionality.  AWS allows different DR strategies like Pilot Light, Warm Standby, Multi-site etc., choice of the strategy to be made based on the cost considerations.  If one availability zone fails, another can be made active to keep the applications active, however application downtime during AZ switching should be minimized by configuring read only mode using read replicas and disabling the less important functionalities.

3. Maintain an Amazon Machine Image

Amazon Machine Images (AMI) help to launch instances in a new availability zone whenever there is an outage of one availability zone detected by a healthcheck.   AMIs can be created from regular backups of EBS volumes and saved configuration templates are used for launching future instances. This ensures that we can restore and clone environments very easily in a different Availability Zone.  Databases are maintained as multiple database slaves across Availability Zones with hot replication.

4. Utilize Amazon CloudWatch

Amazon CloudWatch is a monitoring service for AWS resources and the applications on AWS.  CloudWatch can collect and track metrics, monitor log files, set alarms, and automatically trigger actions to changes in AWS resources. CloudWatch alerts are utilized to get more visibility and take appropriate actions in case of hardware failure or performance degradation.   Auto scaling groups should be configured to maintain a fixed fleet size so that unhealthy Amazon EC2 instances can be replaced by new ones, whenever there is an outage.

5. Design components with Loose coupling

One of the most important rules of cloud application design is to make system components loosely coupled.   Such systems are easily scalable and highly reliable. For decoupling components and enabling asynchronous communication, AWS provided services like SQS, SNS or SWF can be utilized.  It is always a good practice to expose components as a service interface and make them responsible for its own scalability in all appropriate dimensions while interacting with other components asynchronously.


More Stories By Abdul Jaleel Kavungal Kunnumpurath

Abdul Jaleel is an accomplished Solution Architect with over 16+ years of experience in both consulting and delivery roles encompassing architecture solution design, product development, and complete life cycle deliveries. He has experience in architecting end-to-end solutions that are aligned with business objectives and the enterprise IT strategy for requirements across the whole stack – data, software, integration, and infrastructure.

IoT & Smart Cities Stories
Bill Schmarzo, Tech Chair of "Big Data | Analytics" of upcoming CloudEXPO | DXWorldEXPO New York (November 12-13, 2018, New York City) today announced the outline and schedule of the track. "The track has been designed in experience/degree order," said Schmarzo. "So, that folks who attend the entire track can leave the conference with some of the skills necessary to get their work done when they get back to their offices. It actually ties back to some work that I'm doing at the University of San...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
If a machine can invent, does this mean the end of the patent system as we know it? The patent system, both in the US and Europe, allows companies to protect their inventions and helps foster innovation. However, Artificial Intelligence (AI) could be set to disrupt the patent system as we know it. This talk will examine how AI may change the patent landscape in the years to come. Furthermore, ways in which companies can best protect their AI related inventions will be examined from both a US and...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities - ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups.
Chris Matthieu is the President & CEO of Computes, inc. He brings 30 years of experience in development and launches of disruptive technologies to create new market opportunities as well as enhance enterprise product portfolios with emerging technologies. His most recent venture was Octoblu, a cross-protocol Internet of Things (IoT) mesh network platform, acquired by Citrix. Prior to co-founding Octoblu, Chris was founder of Nodester, an open-source Node.JS PaaS which was acquired by AppFog and ...
The deluge of IoT sensor data collected from connected devices and the powerful AI required to make that data actionable are giving rise to a hybrid ecosystem in which cloud, on-prem and edge processes become interweaved. Attendees will learn how emerging composable infrastructure solutions deliver the adaptive architecture needed to manage this new data reality. Machine learning algorithms can better anticipate data storms and automate resources to support surges, including fully scalable GPU-c...
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...