We’ll explore a structured approach to calculating cloud costs, using a fictional cloud provider, NimbusCloud, as an example. This will enable us to delve into the complexities of cloud cost calculation without referencing actual providers.

Understanding Cloud Pricing Models

  • Transaction-based services: These include APIs, messaging queues, and database transactions, which are billed based on the number of requests or transactions processed.
  • Fixed-cost services: These encompass reserved instances, dedicated hosting, and software licences, which incur a fixed monthly or annual fee.

To calculate the total cost of a solution on NimbusCloud, we need to consider both transactional and fixed costs.

Calculating Transactional Costs

Let’s assume we’re building an e-commerce platform on NimbusCloud, utilising their transaction-based services. We expect:

  • 1 million API requests per month, with each request costing $0.005
  • 500,000 messaging queue transactions per month, at $0.002 per transaction
  • 200,000 database transactions per month, priced at $0.01 per transaction

Using the following formula, we can calculate the total transactional cost:

Transactional cost

Transactional Cost = (API Requests × API Cost per Request) + (Messaging Queue Transactions × Messaging Queue Cost per Transaction) + (Database Transactions × Database Cost per Transaction)

Transactional Cost = (1,000,000 × $0.005) + (500,000 × $0.002) + (200,000 × $0.01)

Transactional Cost = $5,000 + $1,000 + $2,000

Transactional Cost = $8,000 per month

Calculating Fixed Costs

In addition to transactional costs, our e-commerce platform also utilises fixed-cost services, including:

  • 10 reserved instances, priced at $500 per instance per month
  • 5 dedicated hosting servers, costing $1,500 per server per month
  • 20 software licences, billed at $100 per licence per month

Using the following formula, we can calculate the total fixed cost:

Fixed cost

Fixed Cost = (Reserved Instances × Reserved Instance Cost) + (Dedicated Hosting Servers × Dedicated Hosting Server Cost) + (Software Licences × Software Licence Cost)

Fixed Cost = (10 × $500) + (5 × $1,500) + (20 × $100)

Fixed Cost = $5,000 + $7,500 + $2,000

Fixed Cost = $14,500 per month

Total Cost of Ownership

To determine the total cost of our e-commerce platform on NimbusCloud, we add the transactional and fixed costs:

Total cost of ownership

Total Cost = Transactional Cost + Fixed Cost

Total Cost = $8,000 + $14,500

Total Cost = $22,500 per month

Let’s consider a real-world example. Suppose our e-commerce platform experiences a 20 per cent increase in traffic, resulting in:

  • 1.2 million API requests per month (up from 1 million)
  • 600,000 messaging queue transactions per month (up from 500,000)
  • 240,000 database transactions per month (up from 200,000)

Using the same calculation as before, we can determine the new transactional cost:

Transactional cost after 20 per cent growth

Transactional Cost = (1,200,000 × $0.005) + (600,000 × $0.002) + (240,000 × $0.01)

Transactional Cost = $6,000 + $1,200 + $2,400

Transactional Cost = $9,600 per month

Assuming the fixed costs remain unchanged, the new total cost of ownership would be:

Total cost after 20 per cent growth

Total Cost = Transactional Cost + Fixed Cost

Total Cost = $9,600 + $14,500

Total Cost = $24,100 per month

Calculating the cost of a solution on the cloud requires a deep understanding of both transactional and fixed costs. By using a structured approach, as demonstrated in this example with NimbusCloud, businesses can accurately determine their total cost of ownership and make informed decisions about resource allocation.

As we move forward, it’s essential to regularly review and adjust our cloud cost calculations to ensure alignment with evolving business needs and changing market conditions. By doing so, organisations can optimise their cloud spend, improve financial efficiency, and drive business success.