← All posts
20/09/2024 — Sasank Chilamkurthy

Why Ola is Moving On Prem: Cloud and its Costs

Author: Sasank Chilamkurthy

Ola's CEO, Bhavish Aggarwal, stirred up a controversy when he posted that he will migrate away from Public cloud, Azure to his own setup over a spat on Linkedin. He got ridiculed by many 'experts' of the industry that he can not actually execute this. Some applauded the courage it takes to make this move. A few days later, he posted a tweet with screenshot where he did migrate away from Azure in a matter of a week.

Bhavish Aggarwal tweet

This tweet contained key billing information that made me go down the rabbit hole. In this post, we will analyze the numbers from this tweet in a detailed manner. Controversy aside, we will see how this move is extremely financially sound.

Background: Cloud and AI

First of all, let's start with an understanding of what does Azure do. Azure is Microsoft's behemoth public cloud service. Amazon Web Services, commonly referred to as AWS, also comes under the same category of public cloud. These services are somewhat similar to 'cloud' services like Dropbox or Google Drive that we likely are familiar with, but much more advanced.

Cloud, therefore, is just a collection of computers connected to constant power and network. Just like in Dropbox, you never actually see these computers when you are using them. You just access them remotely via your phone or laptop. AWS and Azure provide remote access to computers so startups can build applications just like Dropbox. Slack, for example, is another popular application that is hosted on AWS.

These huge clusters of computers is how AI systems like ChatGPT get created. Internet data is widely accessible to anyone who's on it but computers are not. Companies who have these computers, specially with AI chips/GPUs, are able to take advantage of these models. People who do not have access to these computers, called GPU-poor, risk getting left behind.

Costs of Cloud

How do you pay to Cloud? You pay rent just like how you do for your apartment. That is unlike owning computers, you are renting computers. Over the last few years, cloud has become quite expensive. Let's go back to Ola and see how they are spending to host their applications on Azure. We have this information from Bhavish's tweet on Azure billing.

Ola Azure Billing

Operational costs

Operational cost is how much Ola is paying to Azure for normal daily operations. From the figure we can see that it is 500K INR or 5 lakhs rupees per day. It remains constant until May 12 which is when Bhavish announced he's moving out of Azure.

Operational cost (all in INR):

  • Daily spend = 5 lakhs
  • Monthly Spend = 5 * 30 = 150 lakhs
  • Yearly Spend = 150 * 12 = 1800 lakhs = 18 crores
  • 3 year spend = 18 * 3 = 54 crores

So, in form of rents, Ola is paying 54 crores over useful period of a computer.

Egress costs

Starting May 12, Ola started the migration out of Azure. Surprisingly, we actually see a spike of costs from May 12 to May 19. When you want to migrate out of cloud, you have to move your data from Azure's computers to your own. Azure charges for this data transfer and it's called egress costs.

I have computed egress costs by adding up all the costs in the chart during the migration period. It comes out to be 85 lakhs INR. This is sort of a penalty you have to pay Azure for moving out of them. It's like your landlord forcing you to pay few month's rent when moving out of an apartment.

Conclusion

From our calculations, it looks like Ola is spending 18 crores INR per year on Azure cloud and paid 85 lakhs when they wanted to migrate out of it. The cost structure paint a high-maintenance and somewhat abusive relationship. It's no wonder why Ola wants to breakup with Azure.

Knowing just these costs is not enough. We will want to evaluate an alternative to renting computers: buying computers.

Published on 20/09/24