iTranslated by AI
re:Invent 2025: 3 AWS Architecture Failure Cases and Prevention Strategies
Introduction
By transcribing various overseas lectures into Japanese articles, we make hidden, high-quality information more accessible. This project brings you this presentation!
For transcription articles of re:Invent 2025, please check the information summarized in this Spreadsheet.
📖re:Invent 2025: AWS re:Invent 2025 - Architecture lessons: Three failures and how to prevent them (DEV341)
In this video, Bruno Marangoni from DXC introduces three AWS architectural failure cases learned from customers in Latin America. In the first failure, a Brazilian e-commerce company faced uneven instance placement across Availability Zones and latency issues due to manual scaling and a lack of caching strategies. By introducing Auto Scaling groups and implementing caching, they achieved an 80-millisecond reduction in response time. In the second failure, a major bank ignored Security Hub alerts and postponed ECS cluster upgrades, resulting in six hours of downtime and a $250,000 loss. In the third failure, a company operating their dev environment just like production incurred $11,000 in wasted monthly costs due to a lack of financial governance and shutdown policies.
Please note that this is an automatically generated article while maintaining the content of the existing lecture as much as possible. Be aware that there may be typos or incorrect information.
Main Content
Resilience failure: Manual scaling and architectural improvement at an e-commerce company
Hi everyone, nice to meet you. I'm really happy to be here. I'm going to talk about architectural lessons I've learned from the customers I manage in Latin America. These are failures that customers have experienced, but we've helped them prevent them. And I'm going to teach you how you can do the same. I'm Bruno Marangoni, a Latam Senior Solutions Architect at DXC.
Now, for the agenda, I'll start with an introduction to this architectural perspective. In failure number one, I will talk about resilience, security, operational excellence, and multi-account and cost efficiency. Finally, I will share some closing thoughts. We are all architects, and we are all failures. And these are real lessons. It's all about best practices, right? That is, we can learn from each other's errors and problems and apply them to your perspectives and scenarios.
Every architecture looks perfect until it faces reality, right? We saw an issue at Amazon a few days ago, and we all know the result of that issue. Some customers got stuck in their infrastructure because, although they tried to prevent the issue, they hadn't tested it. Yes, that is the problem. The real problem with a perfect architecture is that you draw and implement it, but you don't actually test it. That is the problem.
So, the lesson of the first failure is about resilience. We have a customer. This customer is actually in Brazil. They are an e-commerce fulfillment company that hosts two major mobile companies selling cell phones. They sell iPhones, accessories, Motorolas, and so on, and the website gets about 30,000 hits per day. What I mean is, these two customers are mixed together. And this is one of the problems. They haven't separated the customers and have put them in the same architecture. This is actually a contractual issue, right? In the end, their customers are just sharing the same infrastructure.
This is a basic 3-tier application. That is, a load balancer, Web and Application layers, and a database. It is the most perfect Web 3-tier application learned on AWS, right? You use a load balancer to balance EC2 instances and so on, and you do auto-scaling. And you do the same for the database. Whether it's RDS or a database on EC2, you balance it across Availability Zones, right?
However, this is the customer's actual architecture. They were using manual scaling, and we are talking about e-commerce. That means there are seasonal marketing campaigns like Black Friday. Manual scaling in web applications is the worst, right? If you look here, let me point it out. Counting them, well, there are about 5 instances in one Availability Zone, and only 1 in the other. I asked why that was.
When I asked if there was a reason, they said, "No, we just added them like this." Again, the primary database is in a different Availability Zone than where most of the instances are hosted. You know that AWS has a concept of regions, and within regions, there are Availability Zones, right? AWS says you can add to any Availability Zone within a region, but an Availability Zone is just a data center, right? In this case, when we entered these instances and called the RDS database, there was a latency of nearly 20 to 22 milliseconds. That means in this scenario, we were adding latency to the communication between the web application and the database.
We rearranged this, and by placing the primary RDS here, we were able to reduce the time for database calls. Also, we are talking about e-commerce. There is no caching; this is a disaster. Furthermore, because they were doing manual scaling, they didn't even have EC2 golden images to spin up new instances when needed for seasonal marketing or Black Friday. So, they had to request support to create a new instance, deploy it, install all application dependencies, and add it in front of the load balancer. Too many manual steps, right?
So, what did we do for this customer? First, we balanced the instances. If you need higher availability for e-commerce, there is a reason to distribute instances evenly across Availability Zones. If Availability Zones are not a trade-off for this customer, you could place everything within a single Availability Zone. However, we are talking about e-commerce. If Availability Zone 1 goes down, the application will also go down.
We also created EC2 golden images and set up an Auto Scaling group. We created EC2 templates, input the parameters, and defined how Auto Scaling operates. For RDS, since we distributed the instances with Auto Scaling, there is no reason to move the primary here.
There is one thing I haven't shown you. Mobile e-commerce sites have a lot of photos, right? Since they are selling mobile phones. Photos of iPhones, accessories, and other mobile phones they sell. They had S3 instances here to host the images. However, I added a caching strategy here. The first one is for the web architecture, specifically for the front end, to cache photo images. This improved the performance of responses to customers because they no longer need to download the images again.
We also added caching to the development part. Before this, every time a customer accessed the website, it would call the database, and that database would respond with images. In other words, every time a single customer visited, they were downloading everything. We also added caching to the database. As a final result of this architecture, we were able to reduce access time for customers on the e-commerce site by 80 milliseconds. We achieved significant performance improvement for this client. In fact, we were able to provide very good data in Brazil, which is good material to sell to the customer as an improvement.
Now, let's talk about Lesson 1 and the changes we made. We optimized image bootstrapping, implemented auto-scaling, balanced the web application across Availability Zones, and consolidated the load balancers. I haven't told you this, but they have an average of 3,000 calls per day. They had created 6 load balancers for each part of the website, such as for development, QA, production, and administrators. I don't remember the last one. Anyway, they had created 6 load balancers for each part of the website. We consolidated these and effectively reduced the amount they were paying. We also implemented caching in the database layer and the web layer.
After the changes, the e-commerce site became capable of handling more peak-time customers. In this discussion, we were planning to conduct a Black Friday. You might remember that 3 or 4 years ago, when the iPhone was released, just when Apple had launched the iPhone in Brazil. We are talking about the two most important companies selling iPhones and other mobile phones in Brazil, and their websites went down. They suffered losses, and the mobile phone companies also suffered losses.
In this lesson, availability is an architectural decision, not a checkbox. You need to make trade-offs. We made this trade-off with them. When the website went down on Black Friday, the engineering team said, "Okay, let's distribute the application across the 6 Availability Zones in North Virginia." Why? There is a reason for that: availability. You can get higher availability, but there is no reason to. Because the number of calls per user per day, 2,000 to 3,000 calls, is very small. Therefore, there is no reason to do so. We approved it, and after changing everything, they were satisfied.
Security and Operational Excellence: Bank System Failure Caused by ECS Update Delays
Great. Lesson 2, failure case number 2. This is about security and operational excellence. This customer had introduced an Amazon ECS cluster and Security Hub. This cluster belonged to a major bank where their most important applications were running.
This application was a customer service platform, the most mission-critical workload on ECS. Security Hub was enabled across the account in accordance with best practices, and foundational security best practices were also applied. Alerts were being generated, but some of them were ignored. And although ECS version updates were popping up every month, even every day, they kept postponing these pop-ups.
So the problem was that ECS was not being updated. Is there anyone here who has the problem of having to update ECS? Right? It's dangerous. It is dangerous. I want to tell you that GuardDuty has some very good features for ECS. You need to enable GuardDuty, and you also need to enable it on the ECS cluster. I am only showing the service image here, but the point is this: Security Hub alerts were warning that support for the ECS version update would end soon, right?
The entire ticketing system was working very well. It was warning them to upgrade as soon as possible, but they were ignoring and suppressing the alerts. Yes, alerts were coming in. We work with teams to build DevSecOps cycles and try to break down silos, but sometimes communication doesn't go well, right? The platform team people were suppressing the alerts and were not talking to the security team.
And one day, the security team said, "That's enough. These alerts keep coming to us, so let's apply the ECS upgrade." And what happened? Yeah, this is from the official AWS documentation for ECS. If you upgrade a cluster, you cannot downgrade it, right? To make matters worse, if you upgrade and use a version that is no longer supported in the console, you cannot revert it. That is the problem here.
Although AWS does not write it in their documentation, sometimes you can call your Technical Account Manager, Solutions Architect, or partner and say, "The application is down, we are losing money, we must revert it." Yeah, they might be able to help. In this case, that was carried out. So we, as partners, contacted AWS, and we helped the customer downgrade the cluster again, shut it down and bring it back up, and the application recovered.
So here, the problem was that the cluster was running, but the application was down. There are several ways the customer could have avoided this. Validating the CI/CD pipeline for updates, and checking governance and architecture. I won't explain each one, but the point here is that everything was functioning. They had fairly good governance and a fairly good process.
The problem here was not the architecture itself. The problem was the delay until the platform team and the security team talked to each other and planned the day to perform the upgrade. The architecture failed when the process failed; in this case, the process and siloed communication were broken. To give you some numbers, this customer was down for 6 hours, which cost 1.2 million BRL, or almost $250,000. The point here is not just the $250,000, but the SLA contract, because this was a bank, a huge bank.
Multi-Account and Cost Efficiency: Reducing Waste Through Financial Governance
All right, good. Lesson 3: Multi-Account and Cost Efficiency. This part is quite simple. This company was in the middle of migrating to the cloud. They had migrated 70% of workloads that were not in production, that is, dev and QA. All workloads were running on main instances, including EC2 and ECS, without rightsizing, without operational windows, and without shutdown policies. They treated dev like production, so everything was always running. Also, to support the dev environment, they were using the same SLA at the same cost as production.
So what happened? There was a lack of financial governance, a fear of shutting down without clear policies, and a lack of tags and communication. If no one owns the cost, everyone wants resources. The point here is the numbers. For this customer, we saved 60,000 BRL per month, almost $11,000, and the annual savings were quite good. In other words, cloud efficiency should be the truth. Knowing where costs should go is very important, and that is the cloud way.
Finally, I would like you to take a photo. Because it is important that you understand everything I talked about here, all the important points. Great. You can find me on LinkedIn. Yeah, I was really glad to talk about the lessons learned from this architecture. And, yeah, that's it. Thank you very much. Thank you, Bruno. If you have any questions, Bruno is next to Theater 2.
- This article was created automatically using Amazon Bedrock, maintaining the original video content as much as possible.



























Discussion