Welcome!

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

Article

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
Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...