Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building Resilient Architectures on AWS

You're reading from   Building Resilient Architectures on AWS A practical guide to architecting cost-efficient, resilient solutions in AWS

Arrow left icon
Product type Paperback
Published in Dec 2024
Publisher Packt
ISBN-13 9781835887103
Length 346 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Ajit Puthiyavettle Ajit Puthiyavettle
Author Profile Icon Ajit Puthiyavettle
Ajit Puthiyavettle
Rodrigue Koffi Rodrigue Koffi
Author Profile Icon Rodrigue Koffi
Rodrigue Koffi
Imaya Kumar Jagannathan Imaya Kumar Jagannathan
Author Profile Icon Imaya Kumar Jagannathan
Imaya Kumar Jagannathan
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Setting the Stage – Learning the Basics of Designing Resilient Architectures FREE CHAPTER
2. Chapter 1: Understanding Resilience Concepts 3. Chapter 2: Implementing Resilient Compute and Auto Scaling 4. Chapter 3: Securing and Backing Up Critical Data 5. Chapter 4: Orchestrating Graceful Degradation 6. Chapter 5: Exploring the AWS Shared Responsibility Model 7. Part 2: Building Resilient Cloud Architectures on AWS
8. Chapter 6: Learning AWS Well-Architected Principles for Resiliency 9. Chapter 7: Architecting Fault-Tolerant Applications 10. Chapter 8: Resiliency Considerations for Serverless Applications 11. Chapter 9: Using Containers to Improve Resiliency 12. Chapter 10: Resilient Architectures Across Regions 13. Part 3: Validating Your Architecture for Resiliency
14. Chapter 11: Examples of Resilient Architecture 15. Chapter 12: Observability, Auditing, and Continuous Improvement 16. Chapter 13: Performing Chaos Engineering Testing 17. Chapter 14: Disaster Recovery Planning and Testing 18. Chapter 15: Finalize Building Resilient Architecture Using AWS Resilience Services 19. Index 20. Other Books You May Enjoy

Extending resilience to containers and serverless

When it comes to building resilient applications on AWS, extending your resilience strategy beyond instances to containers and serverless services is crucial. Containers offer a lightweight and portable way to package and deploy applications. By utilizing containers, you can isolate application dependencies and ensure consistent and predictable behavior across different environments. Additionally, containers provide resource isolation, allowing you to run multiple applications on a single host while maintaining high availability and security.

Serverless computing, on the other hand, allows you to build and run applications without managing infrastructure. With serverless, you only pay for the resources your application consumes, eliminating the need to provision and maintain servers. This can significantly reduce the operational overheads and complexity associated with traditional infrastructure management. Furthermore, serverless services are typically designed to be highly scalable and fault-tolerant, making them an ideal choice for building resilient applications.

AWS offers a range of container and serverless services to support your resilience needs. Amazon Elastic Container Service (Amazon ECS) and Amazon Elastic Kubernetes Service (Amazon EKS) provide managed container orchestration services that make it easy to deploy, manage, and scale containerized applications. Amazon Lambda is a serverless compute service that allows you to run code without provisioning or managing servers. On the other hand, AWS Fargate is a serverless compute engine for containers that allows you to run containers without managing the underlying infrastructure.

By leveraging these services, you can build highly resilient applications that are scalable, fault-tolerant, and cost-effective.

Container environments are ephemeral by nature. You never treat a container as a pet but as cattle, which means you just replace the container resource when it isn’t performing to your expectations. For example, if a Kubernetes Pod is running out of memory, you never go into the Pod to increase the allocated memory. Rather, you create a new Pod configuration and redeploy the resource, which results in the existing Pod being completely replaced by a new Pod with the new configuration with higher memory. This essentially means that it is dangerous to keep the state within the Pod memory as it can result in applications losing track of their state often.

Depending on the container orchestration technology, you always deploy more than one copy of the application at any given point to ensure redundant resources are always available to serve your customer requests. It is typical to see customers deploy multiple Replicas of their applications in a Deployment configuration in Amazon EKS. In this case, Kubernetes deploys copies of Pods and also ensures each Pod is deployed in different underlying nodes to ensure high availability and resiliency. Please refer to the Kubernetes documentation (https://kubernetes.io/docs/concepts/workloads/) to learn about concepts such as Pods, Deployments, and more.

All the concepts and logic behind building resilient architectures on virtual machines or other environments apply to container environments as well. This includes emphasizing stateless architectures, maintaining redundancy, automating deployment orchestration, closely monitoring performance and health metrics through monitoring platforms, reducing the blast radius through infrastructure isolation, and more.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image