45% of Savings for Mobile App: Optimization of Kubernetes Costs on AWS

  • AWS Cloud Cost optimization 
  • Cloud Cost optimization 
  • IT Infrastructure and DevOps Consulting
  • IT Infrastructure Audit
  • Kubernetes solution
  • SRE
Optimizing AWS Cloud with Kubernetes: How a Mobile App Achieved 45% of Savings

Background

Our customer is a rapidly growing SaaS application for mobile photography. The company initially operated a single PHP monolith application connected to a MySQL database. However, with an ever-expanding user base (over 10 million of users), it became evident that this setup was no longer sustainable. Developers began creating Node.js and Go microservices, attempting to containerize them using Docker. Unfortunately, these microservices were hosted on separate EC2 instances, leading to excessive resource wastage and inefficiency.

Challenge

In 2022, a mobile app company contacted Gart for consultation regarding their transition to Amazon Web Services (AWS). This shift presented a new challenge – managing Node.js and Go microservices alongside their existing PHP monolith. These microservices were containerized using Docker and distributed across separate groups of EC2 instances, resulting in inefficiencies and wasted resources.
The company urgently required a solution to consolidate and optimize their AWS EC2 instances.

Solution

To address the challenges related to inefficient AWS EC2 instances, Gart initiated an infrastructure audit and provided cloud consulting services. During the audit, it became evident that the most suitable solution for this high-load SaaS project was the implementation of Kubernetes, complemented by cloud-native technologies like gRPC and Envoy, to enhance their infrastructure.

Kubernetes was chosen because it is open source, well supported and fit the company’s AWS setup, incorporating Go as a programming language and gRPC for inter-service communication within their data center.

To meet specific deployment requirements, the company established its own cluster and developed custom components.

We assisted in migrating their services to Kubernetes, commencing with small, low-risk services and progressing to a full-scale migration.

Results

The time required for the first deployment dropped from 2 days to 3 hours.
With continuous integration, containers and Kubernetes, deployments rose from 1,800 to 3,100 a year, and the time per deployment fell by 60%.

Furthermore, the company achieved a substantial 45% reduction in overall EC2 costs, owing to the efficiency gains derived from Kubernetes adoption.

gRPC and Envoy secured communication between services written in different languages. Envoy, adopted early, serves gRPC and HTTP/2 directly to mobile clients through edge load balancers and provides consistent, detailed metrics, which standardized dashboards and made debugging much faster.

Kubernetes, gRPC and Envoy moved the SaaS app to a cloud-native setup that costs less to run, deploys faster and scales with demand.

If you want to cut AWS costs with Kubernetes the same way, Gart can help.

Discover more about our DevOps-as-a-Service offerings on our dedicated page or book a Cloud Consulting.

people icon

Let’s work together!

See how we can help to overcome your challenges

arrow arrow

Thank you
for contacting us!

Please, check your email

arrow arrow

Thank you

You've been subscribed

We use cookies to enhance your browsing experience. By clicking "Accept," you consent to the use of cookies. To learn more, read our Privacy Policy