Keeping in line with the last post, this is how we reduced our AWS costs (2021-2024).
Points are color-coded as per the attached image.
1. Large to small 🟦🟥
Everyone believes they are going to get 50 million users the moment their app hits prod. But I implore you to memorize the following code.
If company.isFunded('Series A') {
instance.set('Large')
}
else {
instance.set('Small')
}
Cost me a few lakhs to learn this. Totally worth it.
2. On-demand to reserved 🟦
I have heard serverless scales infinitely. Well, it does scale your costs infinitely.
Reserve your instance. Then ask AWS for a discount.
3. Filestore to CloudWatch 🟧
Our system logs were stored for years. Our server's file store was bloated.
Now we send them to Cloudwatch, which retains them for three days. Then it's asta-la-vista, baby.
4. ElasticSearch to Postgres 🟪
Why did I even spin up these instances? I thought our discussion forums would need "text search capabilities".
Well, since I don't need to do DNA matching on the comments, the cost of ElasticSearch was prohibitively high.
Instead, we moved our text search to the browser. Using javascript :D
BLASPHEMY!
--------------------------------------------
These experiences have helped us appreciate the practical aspect of designing systems (which often comes up during live classes at InterviewReady).
If you are a startup founder, I wish you all the best!
Cheers!
#AWS #CostManagement
Thanks for your kind words Kevin O'Leary